aboutsummaryrefslogtreecommitdiffstats
path: root/web/gulpfile.js
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2019-12-12 16:28:11 +0100
committerMaximilian Hils <git@maximilianhils.com>2019-12-12 16:28:11 +0100
commit60b95d12f2717dede5602cb23e75ef24a4791450 (patch)
tree8bbe1036a037c249c5785c779336ee5a1f0b9074 /web/gulpfile.js
parent005cb7cf5a5f93c3a9f9bcac11779d0c947d08bb (diff)
downloadmitmproxy-60b95d12f2717dede5602cb23e75ef24a4791450.tar.gz
mitmproxy-60b95d12f2717dede5602cb23e75ef24a4791450.tar.bz2
mitmproxy-60b95d12f2717dede5602cb23e75ef24a4791450.zip
[web] update gulp to fix nodejs compatibility
Diffstat (limited to 'web/gulpfile.js')
-rw-r--r--web/gulpfile.js41
1 files changed, 22 insertions, 19 deletions
diff --git a/web/gulpfile.js b/web/gulpfile.js
index b7c4037d..53d4743d 100644
--- a/web/gulpfile.js
+++ b/web/gulpfile.js
@@ -75,16 +75,16 @@ function styles(files, dev){
.pipe(livereload({auto: false}));
}
gulp.task("styles-app-dev", function () {
- styles(conf.css.app, true);
+ return styles(conf.css.app, true);
});
gulp.task("styles-vendor-dev", function () {
- styles(conf.css.vendor, true);
+ return styles(conf.css.vendor, true);
});
gulp.task("styles-app-prod", function () {
- styles(conf.css.app, false);
+ return styles(conf.css.app, false);
});
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(
"dev",
- [
+ gulp.series(
"copy",
"styles-vendor-dev",
"styles-app-dev",
@@ -197,11 +197,11 @@ gulp.task(
"peg",
"scripts-app-dev",
"templates"
- ]
+ )
);
gulp.task(
"prod",
- [
+ gulp.series(
"copy",
"styles-vendor-prod",
"styles-app-prod",
@@ -209,17 +209,20 @@ gulp.task(
"peg",
"scripts-app-prod",
"templates"
- ]
+ )
);
-gulp.task("default", ["dev"], function () {
- livereload.listen({auto: true});
- gulp.watch(["src/css/vendor*"], ["styles-vendor-dev"]);
- gulp.watch(["src/css/**"], ["styles-app-dev"]);
-
- gulp.watch(conf.templates, ["templates"]);
- gulp.watch(conf.peg, ["peg"]);
- gulp.watch(["src/js/**"], ["eslint"]);
- // other JS is handled by watchify.
- gulp.watch(conf.copy, ["copy"]);
-});
+gulp.task("default", gulp.series(
+ "dev",
+ function () {
+ livereload.listen({auto: true});
+ gulp.watch(["src/css/vendor*"], gulp.series("styles-vendor-dev"));
+ gulp.watch(["src/css/**"], gulp.series("styles-app-dev"));
+
+ gulp.watch(conf.templates, gulp.series("templates"));
+ gulp.watch(conf.peg, gulp.series("peg"));
+ gulp.watch(["src/js/**"], gulp.series("eslint"));
+ // other JS is handled by watchify.
+ gulp.watch(conf.copy, gulp.series("copy"));
+ })
+);