Skip to content

Commit 5c846cf

Browse files
committed
1 parent 99f714f commit 5c846cf

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

recipes/delete-files-folder.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ $ npm install --save-dev gulp del
2929
var gulp = require('gulp');
3030
var del = require('del');
3131

32-
gulp.task('clean:mobile', function (cb) {
33-
del([
32+
gulp.task('clean:mobile', function () {
33+
return del([
3434
'dist/report.csv',
3535
// 这里我们使用一个通配模式来匹配 `mobile` 文件夹中的所有东西
3636
'dist/mobile/**/*',
3737
// 我们不希望删掉这个文件,所以我们取反这个匹配模式
3838
'!dist/mobile/deploy.json'
39-
], cb);
39+
]);
4040
});
4141

4242
gulp.task('default', ['clean:mobile']);

recipes/running-tasks-in-series.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ gulp.task('default', ['one', 'two']);
3737
var gulp = require('gulp');
3838
var del = require('del'); // rm -rf
3939

40-
gulp.task('clean', function(cb) {
41-
del(['output'], cb);
40+
gulp.task('clean', function() {
41+
return del(['output']);
4242
});
4343

4444
gulp.task('templates', ['clean'], function() {

0 commit comments

Comments
 (0)