From 4f202458354aad7375efc7b2a0c65f99380cec01 Mon Sep 17 00:00:00 2001 From: "Fabio M. Costa" Date: Fri, 8 Mar 2019 09:46:22 -0300 Subject: [PATCH 1/2] Fixes "npm run dev" command --- gulpfile.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index c29823ccc7..9cc96c9f32 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -245,7 +245,9 @@ gulp.task( gulp.task( 'website:static', - gulp.series('dist:min', 'css', + gulp.series( + 'dist:min', + 'css', gulp.parallel(function() { return gulp .src(paths.dist + '/Draft.min.js') @@ -256,7 +258,7 @@ gulp.task( .src(paths.dist + '/Draft.css') .pipe(gulp.dest(paths.static + '/css')); }), - ) + ), ); gulp.task( @@ -269,14 +271,14 @@ gulp.task( gulp.task( 'watch', gulp.series(function() { - gulp.watch(paths.src, ['modules']); + gulp.watch(paths.src, gulp.parallel('modules')); }), ); gulp.task( 'dev', gulp.series(function() { - gulp.watch(paths.src, ['modules', 'dist']); + gulp.watch(paths.src, gulp.parallel('modules', 'dist')); }), ); From 2496fbc8c0d8e122dcda85a6fec7c9b5d7355a2a Mon Sep 17 00:00:00 2001 From: "Fabio M. Costa" Date: Mon, 11 Mar 2019 12:10:21 -0300 Subject: [PATCH 2/2] dist already depends on modules, as pointed by CR --- gulpfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 9cc96c9f32..505f204c70 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -278,7 +278,7 @@ gulp.task( gulp.task( 'dev', gulp.series(function() { - gulp.watch(paths.src, gulp.parallel('modules', 'dist')); + gulp.watch(paths.src, gulp.parallel('dist')); }), );