From 2b4b0d7ff2116431173afa559bb2d3f6a552d433 Mon Sep 17 00:00:00 2001 From: Asier Paz Date: Fri, 2 Feb 2018 12:04:09 +0100 Subject: [PATCH] Fixed clean task to correctly run default task The default task uses runSequence which expects a promise to be returned and clean does not return one. Because of that, dgeni and assets tasks are not executed after the clean task. Working like a charm now! --- gulpfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index c0ab02d..fec1b94 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -31,7 +31,7 @@ gulp.task('assets', ['bower'], function() { }); gulp.task('clean', function(done) { - del(['./build'], done); + return del(['./build'], done); }); gulp.task('watch', ['default'], function() { @@ -40,4 +40,4 @@ gulp.task('watch', ['default'], function() { gulp.task('default', function(cb) { runSequence('clean', ['dgeni', 'assets'], cb); -}); \ No newline at end of file +});