Skip to content

Commit

Permalink
Replace blacklisted gulp-clean with del.
Browse files Browse the repository at this point in the history
  • Loading branch information
twada committed Jul 19, 2014
1 parent eb0a3cc commit c4864ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
14 changes: 5 additions & 9 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var gulp = require('gulp'),
mocha = require('gulp-mocha'),
mochaPhantomJS = require('gulp-mocha-phantomjs'),
connect = require('gulp-connect'),
clean = require('gulp-clean'),
del = require('del'),
runSequence = require('run-sequence'),
source = require('vinyl-source-stream'),
through = require('through2'),
Expand Down Expand Up @@ -96,16 +96,12 @@ gulp.task('watch', function () {
runMochaSimply();
});

gulp.task('clean_bundle', function () {
return gulp
.src(config.bundle.destDir, {read: false})
.pipe(clean());
gulp.task('clean_bundle', function (done) {
del([config.bundle.destDir], done);
});

gulp.task('clean_coverage', function () {
return gulp
.src(config.coverage.filename, {read: false})
.pipe(clean());
gulp.task('clean_coverage', function (done) {
del([config.coverage.filename], done);
});

gulp.task('bundle', ['clean_bundle'], function() {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@
"devDependencies": {
"blanket": "~1.1.6",
"browserify": "~4.2.1",
"del": "~0.1.1",
"empower": "~0.7.3",
"espower-source": "~0.7.3",
"gulp": "~3.8.6",
"gulp-clean": "~0.3.1",
"gulp-connect": "~2.0.5",
"gulp-mocha": "~0.5.1",
"gulp-mocha-phantomjs": "~0.2.1",
Expand Down

0 comments on commit c4864ed

Please sign in to comment.