From 87d91b07be7117e1ff90b8b6b84029bca9bf2bb5 Mon Sep 17 00:00:00 2001 From: Blade Barringer Date: Sun, 1 Feb 2015 17:25:08 -0600 Subject: [PATCH] Added clean task --- gulpfile.js | 5 +++-- package.json | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 3ac9025791..484b74f0d2 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1,5 +1,6 @@ var gulp = require('gulp'), _ = require('lodash'), + rimraf = require('rimraf'), nodemon = require('gulp-nodemon'), karma = require('karma').server, stylus = require('gulp-stylus'), @@ -31,8 +32,8 @@ gulp.task('git_changelog', function() { // @TODO: Finish this }); -gulp.task('clean', function() { - // @TODO: Finish this +gulp.task('clean', function(cb) { + rimraf('./build', cb); }); gulp.task('stylus', function() { diff --git a/package.json b/package.json index 5695a42ede..e6f5e74c0c 100644 --- a/package.json +++ b/package.json @@ -91,6 +91,7 @@ "nib": "^1.0.4", "phantomjssmith": "~0.5.4", "protractor": "~0.14.0", + "rimraf": "^2.2.8", "superagent": "~0.15.7", "superagent-defaults": "~0.1.5" }