Add grunt clean task (#119)

refs #6977
- adds `grunt-contrib-clean` dependency
- adds `grunt clean` task that cleans the same client folders as core's `grunt clean` ready to be used via subgrunt
This commit is contained in:
Kevin Ansfield 2016-07-14 12:43:49 +01:00 committed by Hannah Wolfe
parent ce7b82d13a
commit b86da86de5
2 changed files with 20 additions and 0 deletions

View File

@ -19,6 +19,25 @@ module.exports = function(grunt) {
require('matchdep').filterDev(['grunt-*', '!grunt-cli']).forEach(grunt.loadNpmTasks);
grunt.initConfig({
clean: {
built: {
src: [
'dist/**',
'public/assets/img/contributors/**',
'app/templates/-contributors.hbs'
]
},
dependencies: {
src: [
'bower_components/**',
'node_modules/**'
]
},
tmp: {
src: ['tmp/**']
}
},
jshint: {
options: {
jshintrc: true,

View File

@ -75,6 +75,7 @@
"fs-extra": "0.30.0",
"glob": "^7.0.5",
"grunt": "1.0.1",
"grunt-contrib-clean": "1.0.0",
"grunt-contrib-jshint": "1.0.0",
"grunt-jscs": "3.0.1",
"grunt-shell": "1.3.0",