Skip to content

Commit

Permalink
Replace gulp-clean with del.
Browse files Browse the repository at this point in the history
  • Loading branch information
NoUseFreak committed Mar 22, 2015
1 parent ba82fc4 commit b2dd8d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var concat = require('gulp-concat'),
filesize = require('gulp-filesize'),
rename = require('gulp-rename'),
less = require('gulp-less'),
clean = require('gulp-clean'),
del = require('del'),
livereload = require('gulp-livereload'),
notify = require("gulp-notify"),
clasticNamespace = require('./src/Clastic/CoreBundle/Resources/scripts/Clastic.js');
Expand Down Expand Up @@ -49,9 +49,10 @@ var errorHandler = notify.onError(function (err) {

gulp.task('default', ['clean', 'build', 'watch']);

gulp.task('clean', function () {
return gulp.src('build', {read: false})
.pipe(clean());
gulp.task('clean', function (cb) {
del([
paths.build + '/**'
], cb);
});

gulp.task('build', ['scripts', 'styles']);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"private": true,
"description": "Clastic Standard Edition",
"dependencies": {
"del": "^1.1.1",
"gulp": "^3.8.10",
"gulp-autoprefixer": "^2.0.0",
"gulp-clean": "^0.3.1",
"gulp-concat": "^2.4.2",
"gulp-filesize": "0.0.6",
"gulp-less": "^3.0.0",
Expand Down

0 comments on commit b2dd8d4

Please sign in to comment.