mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 02:10:59 +00:00
[web] update gulp to fix nodejs compatibility
This commit is contained in:
parent
005cb7cf5a
commit
60b95d12f2
@ -75,16 +75,16 @@ function styles(files, dev){
|
|||||||
.pipe(livereload({auto: false}));
|
.pipe(livereload({auto: false}));
|
||||||
}
|
}
|
||||||
gulp.task("styles-app-dev", function () {
|
gulp.task("styles-app-dev", function () {
|
||||||
styles(conf.css.app, true);
|
return styles(conf.css.app, true);
|
||||||
});
|
});
|
||||||
gulp.task("styles-vendor-dev", function () {
|
gulp.task("styles-vendor-dev", function () {
|
||||||
styles(conf.css.vendor, true);
|
return styles(conf.css.vendor, true);
|
||||||
});
|
});
|
||||||
gulp.task("styles-app-prod", function () {
|
gulp.task("styles-app-prod", function () {
|
||||||
styles(conf.css.app, false);
|
return styles(conf.css.app, false);
|
||||||
});
|
});
|
||||||
gulp.task("styles-vendor-prod", function () {
|
gulp.task("styles-vendor-prod", function () {
|
||||||
styles(conf.css.vendor, false);
|
return styles(conf.css.vendor, false);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
@ -189,7 +189,7 @@ gulp.task("peg", function () {
|
|||||||
|
|
||||||
gulp.task(
|
gulp.task(
|
||||||
"dev",
|
"dev",
|
||||||
[
|
gulp.series(
|
||||||
"copy",
|
"copy",
|
||||||
"styles-vendor-dev",
|
"styles-vendor-dev",
|
||||||
"styles-app-dev",
|
"styles-app-dev",
|
||||||
@ -197,11 +197,11 @@ gulp.task(
|
|||||||
"peg",
|
"peg",
|
||||||
"scripts-app-dev",
|
"scripts-app-dev",
|
||||||
"templates"
|
"templates"
|
||||||
]
|
)
|
||||||
);
|
);
|
||||||
gulp.task(
|
gulp.task(
|
||||||
"prod",
|
"prod",
|
||||||
[
|
gulp.series(
|
||||||
"copy",
|
"copy",
|
||||||
"styles-vendor-prod",
|
"styles-vendor-prod",
|
||||||
"styles-app-prod",
|
"styles-app-prod",
|
||||||
@ -209,17 +209,20 @@ gulp.task(
|
|||||||
"peg",
|
"peg",
|
||||||
"scripts-app-prod",
|
"scripts-app-prod",
|
||||||
"templates"
|
"templates"
|
||||||
]
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
gulp.task("default", ["dev"], function () {
|
gulp.task("default", gulp.series(
|
||||||
|
"dev",
|
||||||
|
function () {
|
||||||
livereload.listen({auto: true});
|
livereload.listen({auto: true});
|
||||||
gulp.watch(["src/css/vendor*"], ["styles-vendor-dev"]);
|
gulp.watch(["src/css/vendor*"], gulp.series("styles-vendor-dev"));
|
||||||
gulp.watch(["src/css/**"], ["styles-app-dev"]);
|
gulp.watch(["src/css/**"], gulp.series("styles-app-dev"));
|
||||||
|
|
||||||
gulp.watch(conf.templates, ["templates"]);
|
gulp.watch(conf.templates, gulp.series("templates"));
|
||||||
gulp.watch(conf.peg, ["peg"]);
|
gulp.watch(conf.peg, gulp.series("peg"));
|
||||||
gulp.watch(["src/js/**"], ["eslint"]);
|
gulp.watch(["src/js/**"], gulp.series("eslint"));
|
||||||
// other JS is handled by watchify.
|
// other JS is handled by watchify.
|
||||||
gulp.watch(conf.copy, ["copy"]);
|
gulp.watch(conf.copy, gulp.series("copy"));
|
||||||
});
|
})
|
||||||
|
);
|
||||||
|
@ -52,21 +52,21 @@
|
|||||||
"browserify": "^14.5.0",
|
"browserify": "^14.5.0",
|
||||||
"envify": "^4.1.0",
|
"envify": "^4.1.0",
|
||||||
"eslint": "^4.9.0",
|
"eslint": "^4.9.0",
|
||||||
"gulp": "^3.9.1",
|
"gulp": "^4.0.2",
|
||||||
"gulp-clean-css": "^3.9.0",
|
"gulp-clean-css": "^4.2.0",
|
||||||
"gulp-eslint": "^4.0.0",
|
"gulp-eslint": "^6.0.0",
|
||||||
"gulp-less": "^3.3.2",
|
"gulp-less": "^4.0.1",
|
||||||
"gulp-livereload": "^3.8.1",
|
"gulp-livereload": "^4.0.2",
|
||||||
"gulp-notify": "^3.0.0",
|
"gulp-notify": "^3.2.0",
|
||||||
"gulp-peg": "^0.2.0",
|
"gulp-peg": "^0.2.0",
|
||||||
"gulp-plumber": "^1.1.0",
|
"gulp-plumber": "^1.2.1",
|
||||||
"gulp-rename": "^1.2.2",
|
"gulp-rename": "^2.0.0",
|
||||||
"gulp-sourcemaps": "^2.6.1",
|
"gulp-sourcemaps": "^2.6.5",
|
||||||
"gulp-util": "^3.0.8",
|
"gulp-util": "^3.0.8",
|
||||||
"jest": "^21.2.1",
|
"jest": "^21.2.1",
|
||||||
"uglifyify": "^4.0.4",
|
"uglifyify": "^4.0.4",
|
||||||
"vinyl-buffer": "^1.0.0",
|
"vinyl-buffer": "^1.0.1",
|
||||||
"vinyl-source-stream": "^1.1.0",
|
"vinyl-source-stream": "^2.0.0",
|
||||||
"watchify": "^3.9.0"
|
"watchify": "^3.11.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
3584
web/yarn.lock
3584
web/yarn.lock
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user