Skip to content

Commit

Permalink
use rimraf instead of gulp-rimraf
Browse files Browse the repository at this point in the history
  • Loading branch information
lubelski committed May 30, 2014
1 parent 0a611c0 commit b65a70c
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions docs/recipes/running-tasks-in-series.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,18 @@ Another Example, which returns the stream instead of using a callback:

```javascript
var gulp = require('gulp');
var rimraf = require('gulp-rimraf'); //rm -rf
var rimraf = require('rimraf'); //rm -rf

gulp.task('clean', function() {
// return the stream as the completion hint,
// which the calling task(s) can use to know that this task has completed.
return gulp.src('./output', { read: false })
.pipe(rimraf());

gulp.task('clean', function(cb) {
rimraf('./output', cb);
});

gulp.task('templates', ['clean'], function() {
var stream = gulp.src(['src/templates/*.hbs'])
// do some concatentation, minification, etc.
.pipe(gulp.dest('output/templates/'));
return stream;
return stream; // return the stream as the completion hint

});

gulp.task('styles', ['clean'], function() {
Expand Down

0 comments on commit b65a70c

Please sign in to comment.