Skip to content

Commit

Permalink
Added 'clean' task. Now using load-grunt-tasks.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Wermke committed Jun 28, 2014
1 parent 06f32d8 commit 4f00d89
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
12 changes: 4 additions & 8 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,7 @@ module.exports = function (grunt) {

var fs = require('fs');

grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-jasmine');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-gh-pages');
grunt.loadNpmTasks('grunt-shell');
require('load-grunt-tasks')(grunt);

grunt.initConfig({
shell: {
Expand Down Expand Up @@ -68,7 +62,9 @@ module.exports = function (grunt) {
base: 'public'
},
src: ['**']
}
},

clean: ['.grunt/', 'public/']
});

grunt.registerTask('check-version', 'Checks that the version is the same in all manifest files.', function () {
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,16 @@
"bower": "~1.3.5",
"grunt": "~0.4.1",
"grunt-cli": "~0.1.13",
"grunt-contrib-clean": "^0.5.0",
"grunt-contrib-copy": "^0.5.0",
"grunt-contrib-jasmine": "~0.6.5",
"grunt-contrib-jshint": "~0.10.0",
"grunt-contrib-uglify": "~0.5.0",
"grunt-contrib-watch": "~0.5.3",
"grunt-gh-pages": "^0.9.1",
"grunt-shell": "^0.7.0",
"husky": "^0.5.0"
"husky": "^0.5.0",
"load-grunt-tasks": "^0.6.0"
},
"scripts": {
"grunt": "./node_modules/.bin/grunt",
Expand Down

0 comments on commit 4f00d89

Please sign in to comment.