Skip to content

Commit d04a515

Browse files
committed
build(gulp): refactor existing cleanup tasks
the current complexity is unjustified necessary
1 parent 0ae89ac commit d04a515

File tree

2 files changed

+9
-18
lines changed

2 files changed

+9
-18
lines changed

gulpfile.js

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ var path = require('path');
1818
var semver = require('semver');
1919
var watch = require('./tools/build/watch');
2020

21-
var clean = require('./tools/build/clean');
2221
var transpile = require('./tools/build/transpile');
2322
var pubget = require('./tools/build/pubget');
2423
var linknodemodules = require('./tools/build/linknodemodules');
@@ -134,17 +133,17 @@ gulp.task('build/clean.tools', function() {
134133
del(path.join('dist', 'tools'));
135134
});
136135

137-
gulp.task('build/clean.js', clean(gulp, gulpPlugins, {
138-
path: CONFIG.dest.js.all
139-
}));
136+
gulp.task('build/clean.js', function(done) {
137+
del(CONFIG.dest.js.all, done);
138+
});
140139

141-
gulp.task('build/clean.dart', clean(gulp, gulpPlugins, {
142-
path: CONFIG.dest.dart
143-
}));
140+
gulp.task('build/clean.dart', function(done) {
141+
del(CONFIG.dest.dart, done);
142+
});
144143

145-
gulp.task('build/clean.docs', clean(gulp, gulpPlugins, {
146-
path: CONFIG.dest.docs
147-
}));
144+
gulp.task('build/clean.docs', function(done) {
145+
del(CONFIG.dest.docs, done);
146+
});
148147

149148

150149
// ------------

tools/build/clean.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)