Browse Source

Merge pull request #435 from twbs/grunt-contrib-clean

Clean dist folders when building.
pull/441/head
XhmikosR 11 years ago
parent
commit
c7f6550fbf
  1. 6
      Gruntfile.js
  2. 1
      package.json

6
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']);

1
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",

Loading…
Cancel
Save