From 8df76fb257f0d0ae54bf0e821c7efe49207372e4 Mon Sep 17 00:00:00 2001 From: Jakub Kasprzyk Date: Sun, 9 Aug 2015 11:27:49 +0200 Subject: [PATCH] Change `gulp-clean` to `del` Using `gulp-clean` is depreciated as mentioned on github repository site: https://github.com/peter-vilja/gulp-clean so it's better to use `del` as it is suggested --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6dab47a..0aef81d 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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! });