Skip to content

Commit

Permalink
replaced clean with del as rimraf is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
rgksugan committed Nov 27, 2014
1 parent fe6c8d0 commit 0b7656f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/templates/_gulpfile.js
Expand Up @@ -11,6 +11,7 @@ var gulp = require('gulp'),
map = require('map-stream'),
browserSync = require('browser-sync'),
runSequence = require('run-sequence'),
del = require('del'),
gulpPlugins = require('gulp-load-plugins')();

// chalk config
Expand Down Expand Up @@ -291,8 +292,7 @@ gulp.task('watch', function () {

var cleanFiles = function (files, logMessage) {
console.log('-------------------------------------------------- CLEAN :' + logMessage);
gulp.src(files, {read: false})
.pipe(gulpPlugins.rimraf({force: true}));
del(files);
};

gulp.task('clean', function () {
Expand Down
4 changes: 2 additions & 2 deletions app/templates/_package.json
Expand Up @@ -15,7 +15,6 @@
"gulp-jshint": "~1.3.4",
"gulp-minify-css": "~0.1.0",
"gulp-minify-html": "~0.1.0",
"gulp-rimraf": "^0.1.0",
"gulp-sass": "^0.7.1",
"gulp-uglify": "~0.1.0",
"gulp-filter": "*",
Expand All @@ -31,7 +30,8 @@
"run-sequence": "~0.3.6",
"supertest": "~0.9.0",
"yargs": "^1.2.1",
"map-stream": "*"
"map-stream": "*",
"del": "^0.1.3"
},
"engines": {
"node": ">=0.8.0"
Expand Down

0 comments on commit 0b7656f

Please sign in to comment.