Skip to content

Commit

Permalink
upgrade del to 3.0 (cocos#3572)
Browse files Browse the repository at this point in the history
  • Loading branch information
jareguo authored Nov 30, 2018
1 parent 84a014d commit 87c6aa6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,15 @@ gulp.task('build-jsb', ['build-jsb-preview', 'build-jsb-dev', 'build-jsb-min']);
// test //
/////////

gulp.task('clean-test', ['clean-test-cases'], function (done) {
Del([
gulp.task('clean-test', ['clean-test-cases'], function () {
return Del([
'./bin/cocos2d-js-extends-for-test.js',
'./bin/cocos2d-js-for-test.js',
], done);
]);
});

gulp.task('clean-test-cases', function (done) {
Del('./bin/test/**/*', done);
gulp.task('clean-test-cases', function () {
return Del('./bin/test/**/*');
});

gulp.task('build-test-cases', ['clean-test-cases'], function (done) {
Expand Down Expand Up @@ -145,13 +145,13 @@ gulp.task('test-no-build', function (done) {
// global //
////////////

gulp.task('clean-cache', function (done) {
Del(['./bin/.cache/*', '!./bin/.cache/dev/**'], done);
gulp.task('clean-cache', function () {
return Del(['./bin/.cache/*', '!./bin/.cache/dev/**']);
});

// fast build, only for develop
gulp.task('build-dev', ['clean-cache', 'build-html5-preview', 'build-jsb-preview'], function (done) {
Del(['./bin/cocos2d-jsb-min.js', './bin/cocos2d-jsb.js'], done);
gulp.task('build-dev', ['clean-cache', 'build-html5-preview', 'build-jsb-preview'], function () {
return Del(['./bin/cocos2d-jsb-min.js', './bin/cocos2d-jsb.js']);
});

// only build preview for html5 since it will built by editor
Expand All @@ -160,8 +160,8 @@ gulp.task('build', ['clean-cache', 'build-html5-preview', 'build-jsb']);
// default task
gulp.task('default', ['build']);

gulp.task('clean', function (done) {
Del('./bin/**/*', done);
gulp.task('clean', function () {
return Del('./bin/**/*');
});

////////////
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"babelify": "7.3.0",
"browserify": "13.0.0",
"chalk": "1.1.0",
"del": "1.2.0",
"del": "3.0.0",
"event-stream": "3.3.2",
"fire-fs": "0.2.1",
"gulp": "^3.9.1",
Expand Down

0 comments on commit 87c6aa6

Please sign in to comment.