From d8ff9c4743c1c738f4959a46ba6c3bdfc9ca7947 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Wed, 26 Sep 2012 03:58:46 +0200 Subject: [PATCH] Add grunt-contrib-clean. --- grunt.js | 9 +++++---- package.json | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/grunt.js b/grunt.js index 8e779368c..aa475e930 100644 --- a/grunt.js +++ b/grunt.js @@ -108,22 +108,23 @@ module.exports = function(grunt) { push: { command: 'git push && git push --tags', stdout: true - }, - clean: { - command: 'rm -r tmp' } }, watch: { files: ['grunt.js', 'lib/**/*.coffee', 'src/**/*.coffee', 'css/**/*.css', 'img/*'], tasks: 'default' + }, + clean: { + tmp:['tmp'] } }); grunt.loadNpmTasks('grunt-bump'); + grunt.loadNpmTasks('grunt-contrib-clean'); grunt.loadNpmTasks('grunt-contrib-coffee'); grunt.loadNpmTasks('grunt-exec'); - grunt.registerTask('default', 'concat:coffee coffee concat:js exec:clean'); + grunt.registerTask('default', 'concat:coffee coffee concat:js clean'); grunt.registerTask('release', 'concat:meta concat:latest default exec:commit exec:push'); grunt.registerTask('patch', 'bump'); grunt.registerTask('upgrade', 'bump:minor'); diff --git a/package.json b/package.json index 49e49d02f..fd4254c1a 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ }, "dependencies": { "grunt-bump": "0.0.x", + "grunt-contrib-clean": "0.3.x", "grunt-contrib-coffee": "0.3.x", "grunt-exec": "0.3.x", "grunt-image-embed": "0.0.x"