diff --git a/Gruntfile.js b/Gruntfile.js index 8f9677d..62f99f9 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -36,6 +36,10 @@ module.exports = function(grunt) { ' * =====================================================\n' + ' */\n', + clean: { + dist: ['dist', 'docs/dist'] + }, + concat: { ratchet: { options: { @@ -200,7 +204,7 @@ module.exports = function(grunt) { // Default task(s). grunt.registerTask('dist-css', ['sass', 'cssmin']); grunt.registerTask('dist-js', ['concat', 'uglify']); - grunt.registerTask('dist', ['dist-css', 'dist-js', 'copy']); + grunt.registerTask('dist', ['clean', 'dist-css', 'dist-js', 'copy']); grunt.registerTask('validate-html', ['jekyll', 'validation']); grunt.registerTask('build', ['dist']); grunt.registerTask('default', ['dist']); diff --git a/package.json b/package.json index 06adfc3..0b789e5 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,7 @@ }, "devDependencies": { "grunt": "~0.4.2", + "grunt-contrib-clean": "~0.5.0", "grunt-contrib-concat": "~0.3.0", "grunt-contrib-copy": "~0.5.0", "grunt-contrib-cssmin": "~0.9.0",