Skip to content

Commit

Permalink
Merge pull request OverZealous#45 from neu5/patch-1
Browse files Browse the repository at this point in the history
Change `gulp-clean` to `del`
  • Loading branch information
OverZealous committed Aug 9, 2015
2 parents e33eba5 + 8df76fb commit 4cb10d8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Then add use it in your gulpfile, like so:
```js
var gulp = require('gulp');
var runSequence = require('run-sequence');
var clean = require('gulp-clean');
var del = require('del');

// This will run in this order:
// * build-clean
Expand All @@ -58,9 +58,9 @@ gulp.task('build', function(callback) {
// wish, but make sure they either return a stream or handle the callback
// Example:

gulp.task('build-clean', function() {
return gulp.src(BUILD_DIRECTORY).pipe(clean());
// ^^^^^^
gulp.task('build-clean', function(callback) {
del([BUILD_DIRECTORY], callback);
// ^^^^^^^^
// This is the key here, to make sure tasks run asynchronously!
});

Expand Down

0 comments on commit 4cb10d8

Please sign in to comment.