From 04b7d685819ab1668f0f36807d585d79cf7a014b Mon Sep 17 00:00:00 2001 From: "wangji5850@sina.com" Date: Fri, 29 Mar 2019 11:45:21 +0800 Subject: [PATCH] =?UTF-8?q?gulp=20=E5=8D=87=E7=BA=A7=E5=88=B04.0.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gulpfile.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 8bd2b59..44984f1 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -46,20 +46,26 @@ gulp.task('other', task.other); //移动一些配件 gulp.task('clearZip', function(cb){ //清理 return del(['./release/zip/*'], cb); }); -gulp.task('r', ['clearZip'], function(){ +gulp.task('r', gulp.series('clearZip', function(){ gulp.src('./release/doc/**/*') .pipe(gulp.dest(releaseDir)) return gulp.src('./dist/**/*') .pipe(gulp.dest(releaseDir + '/laydate')) -}); +})); //全部 -gulp.task('default', ['clear'], function(){ +// gulp.task('default', ['clear'], function(){ +// for(var key in task){ +// task[key](); +// } +// }); +//全部 +gulp.task('default', gulp.series('clear', function(){ for(var key in task){ task[key](); } -}); +}));