gulp 升级到4.0.0

pull/81/head
wangji5850@sina.com 2019-03-29 11:45:21 +08:00
parent bfc0c1bf6d
commit 04b7d68581
1 changed files with 10 additions and 4 deletions

View File

@ -46,20 +46,26 @@ gulp.task('other', task.other); //移动一些配件
gulp.task('clearZip', function(cb){ //清理 gulp.task('clearZip', function(cb){ //清理
return del(['./release/zip/*'], cb); return del(['./release/zip/*'], cb);
}); });
gulp.task('r', ['clearZip'], function(){ gulp.task('r', gulp.series('clearZip', function(){
gulp.src('./release/doc/**/*') gulp.src('./release/doc/**/*')
.pipe(gulp.dest(releaseDir)) .pipe(gulp.dest(releaseDir))
return gulp.src('./dist/**/*') return gulp.src('./dist/**/*')
.pipe(gulp.dest(releaseDir + '/laydate')) .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){ for(var key in task){
task[key](); task[key]();
} }
}); }));