Skip to content

Commit f00404f

Browse files
committed
Replace gulp-clean with del module
It appears that gulp-clean was deprecated in favor of gulp-rimraf, which was in turn deprecated in favor of using the del module.
1 parent 896c695 commit f00404f

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

gulpfile.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var gulp = require('gulp'),
55
jshint = require('gulp-jshint'),
66
uglify = require('gulp-uglify'),
77
rename = require('gulp-rename'),
8-
clean = require('gulp-clean'),
8+
del = require('del'),
99
concat = require('gulp-concat'),
1010
notify = require('gulp-notify'),
1111
cache = require('gulp-cache'),
@@ -45,9 +45,11 @@ gulp.task('scripts', function() {
4545
.pipe(browserSync.reload({stream:true}));
4646
});
4747

48-
gulp.task('clean', function() {
49-
return gulp.src(['stylesheets', 'javascripts'], {read: false})
50-
.pipe(clean());
48+
gulp.task('clean', function(cb) {
49+
del([
50+
'stylesheets',
51+
'javascripts'
52+
], cb);
5153
});
5254

5355
gulp.task('browser-sync', ['styles', 'scripts'], function() {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"gulp": "^3.8.7",
1616
"gulp-autoprefixer": "0.0.8",
1717
"gulp-cache": "^0.2.0",
18-
"gulp-clean": "^0.3.1",
18+
"del": "^1.1.1",
1919
"gulp-concat": "^2.3.4",
2020
"gulp-cssshrink": "^0.1.4",
2121
"gulp-jshint": "^1.8.3",

0 commit comments

Comments
 (0)