mirror of
https://github.com/bitwarden/desktop.git
synced 2024-11-16 10:35:31 +01:00
filter edge files from releases
This commit is contained in:
parent
f937fca917
commit
05f5891216
@ -1,5 +1,6 @@
|
||||
const gulp = require('gulp'),
|
||||
gulpif = require('gulp-if'),
|
||||
filter = require('gulp-filter'),
|
||||
replace = require('gulp-replace'),
|
||||
jshint = require('gulp-jshint'),
|
||||
googleWebFonts = require('gulp-google-webfonts'),
|
||||
@ -7,8 +8,7 @@ const gulp = require('gulp'),
|
||||
child = require('child_process'),
|
||||
zip = require('gulp-zip'),
|
||||
manifest = require('./src/manifest.json'),
|
||||
xmlpoke = require('gulp-xmlpoke'),
|
||||
del = require("del");
|
||||
xmlpoke = require('gulp-xmlpoke');
|
||||
|
||||
const paths = {
|
||||
releases: './releases/',
|
||||
@ -27,9 +27,9 @@ const sidebarActionManifestObj = {
|
||||
|
||||
function dist(browserName, manifest) {
|
||||
return gulp.src(paths.dist + '**/*')
|
||||
.pipe(gulpif(browserName !== 'edge', filter(['**', '!dist/edge/**/*'])))
|
||||
.pipe(gulpif('popup/index.html', replace('__BROWSER__', browserName)))
|
||||
.pipe(gulpif('manifest.json', jeditor(manifest)))
|
||||
//.pipe(gulpif(browserName !== 'edge', del(['edge/**'])))
|
||||
.pipe(zip(`dist-${browserName}.zip`))
|
||||
.pipe(gulp.dest(paths.releases));
|
||||
}
|
||||
|
@ -22,11 +22,11 @@
|
||||
"clipboard": "1.7.1",
|
||||
"copy-webpack-plugin": "^4.2.0",
|
||||
"css-loader": "^0.28.7",
|
||||
"del": "3.0.0",
|
||||
"extract-text-webpack-plugin": "^3.0.1",
|
||||
"file-loader": "^1.1.5",
|
||||
"font-awesome": "4.7.0",
|
||||
"gulp": "3.9.1",
|
||||
"gulp-filter": "5.0.1",
|
||||
"gulp-google-webfonts": "0.0.14",
|
||||
"gulp-if": "^2.0.2",
|
||||
"gulp-jshint": "2.0.4",
|
||||
|
Loading…
Reference in New Issue
Block a user