diff options
author | Maximilian Hils <git@maximilianhils.com> | 2019-12-12 16:53:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-12 16:53:14 +0100 |
commit | 7810b68c82ea9159e575b80058ba598bb28425f7 (patch) | |
tree | 4e1ef8ed3614c1e540d15730b787c9d5bb0f9585 /web/gulpfile.js | |
parent | a58b8c9cdbfea7bb77d36e646ce14e6f4f1d64f3 (diff) | |
parent | 1f45e1424284add6266027f24ffe8ff548b72570 (diff) | |
download | mitmproxy-7810b68c82ea9159e575b80058ba598bb28425f7.tar.gz mitmproxy-7810b68c82ea9159e575b80058ba598bb28425f7.tar.bz2 mitmproxy-7810b68c82ea9159e575b80058ba598bb28425f7.zip |
Merge pull request #3745 from mhils/v5.x
Prepare 5.0 release
Diffstat (limited to 'web/gulpfile.js')
-rw-r--r-- | web/gulpfile.js | 41 |
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")); + }) +); |