Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
simplify clean task with del
  • Loading branch information
sindresorhus committed Jun 21, 2014
1 parent 62a683f commit 8968391
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions gulpfile.js
Expand Up @@ -22,7 +22,7 @@
// Include Gulp & Tools We'll Use
var gulp = require('gulp');
var $ = require('gulp-load-plugins')();
var rimraf = require('rimraf');
var del = require('del');
var runSequence = require('run-sequence');
var browserSync = require('browser-sync');
var pagespeed = require('psi');
Expand Down Expand Up @@ -111,9 +111,7 @@ gulp.task('html', function () {
});

// Clean Output Directory
gulp.task('clean', function (cb) {
rimraf('dist', rimraf.bind({}, '.tmp', cb));
});
gulp.task('clean', del.bind(null, ['.tmp', 'dist']));

// Watch Files For Changes & Reload
gulp.task('serve', function () {
Expand Down
6 changes: 3 additions & 3 deletions package.json
@@ -1,6 +1,7 @@
{
"devDependencies": {
"browser-sync": "^1.0.0",
"del": "^0.1.0",
"gulp": "^3.6.0",
"gulp-autoprefixer": "^0.0.7",
"gulp-cache": "^0.1.1",
Expand All @@ -11,6 +12,7 @@
"gulp-jshint": "^1.5.3",
"gulp-load-plugins": "^0.5.0",
"gulp-minify-html": "^0.1.3",
"gulp-replace": "^0.3.0",
"gulp-ruby-sass": "^0.5.0",
"gulp-size": "^0.4.0",
"gulp-uglify": "^0.3.0",
Expand All @@ -19,9 +21,7 @@
"jshint-stylish": "^0.2.0",
"opn": "^0.1.1",
"psi": "^0.0.4",
"rimraf": "^2.2.8",
"run-sequence": "^0.3.6",
"gulp-replace": "^0.3.0"
"run-sequence": "^0.3.6"
},
"engines": {
"node": ">=0.10.0"
Expand Down

0 comments on commit 8968391

Please sign in to comment.