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