diff --git a/Gruntfile.js b/Gruntfile.js index a58df5ae77..b07bce3f8f 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -278,6 +278,12 @@ var path = require('path'), } }, + clean: { + build: { + src: ["<%= paths.buildBuild %>/**"] + } + }, + copy: { nightly: { files: [{ @@ -793,6 +799,7 @@ var path = require('path'), "concat", "uglify", "changelog", + "clean:build", "copy:build", "compress:build" ]); diff --git a/package.json b/package.json index 6404e14234..b126389387 100644 --- a/package.json +++ b/package.json @@ -40,6 +40,7 @@ "grunt-contrib-handlebars": "~0.5.10", "grunt-contrib-watch": "~0.5.1", "grunt-bump": "~0.0.11", + "grunt-contrib-clean": "~0.5.0", "grunt-contrib-copy": "~0.4.1", "grunt-contrib-compress": "~0.5.2", "grunt-contrib-concat": "~0.3.0",