Skip to content

Commit 127c447

Browse files
committed
Fixing usage of del; now returns a Promise, doesn't accept callbacks anymore
1 parent 86374ff commit 127c447

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tasks/dist.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var uglify = require('gulp-uglify');
1111

1212
module.exports = function (gulp, config) {
1313
gulp.task('clean:dist', function (done) {
14-
del([config.component.dist], done);
14+
return del([config.component.dist]);
1515
});
1616

1717
gulp.task('build:dist:scripts', function () {

tasks/examples.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ module.exports = function (gulp, config) {
115115
};
116116
}
117117

118-
gulp.task('clean:examples', function (done) { del([config.example.dist], done); });
118+
gulp.task('clean:examples', function () { return del([config.example.dist]); });
119119
gulp.task('watch:example:scripts', buildExampleScripts(true));
120120
gulp.task('build:example:scripts', buildExampleScripts());
121121

tasks/lib.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ var babel = require('gulp-babel');
22
var del = require('del');
33

44
module.exports = function (gulp, config) {
5-
gulp.task('clean:lib', function (done) {
6-
del([config.component.lib], done);
5+
gulp.task('clean:lib', function () {
6+
return del([config.component.lib]);
77
});
88

99
gulp.task('build:lib', function () {

0 commit comments

Comments
 (0)