Add grunt-contrib-clean.
This commit is contained in:
parent
4a34cd7021
commit
d8ff9c4743
9
grunt.js
9
grunt.js
@ -108,22 +108,23 @@ module.exports = function(grunt) {
|
|||||||
push: {
|
push: {
|
||||||
command: 'git push && git push --tags',
|
command: 'git push && git push --tags',
|
||||||
stdout: true
|
stdout: true
|
||||||
},
|
|
||||||
clean: {
|
|
||||||
command: 'rm -r tmp'
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
files: ['grunt.js', 'lib/**/*.coffee', 'src/**/*.coffee', 'css/**/*.css', 'img/*'],
|
files: ['grunt.js', 'lib/**/*.coffee', 'src/**/*.coffee', 'css/**/*.css', 'img/*'],
|
||||||
tasks: 'default'
|
tasks: 'default'
|
||||||
|
},
|
||||||
|
clean: {
|
||||||
|
tmp:['tmp']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
grunt.loadNpmTasks('grunt-bump');
|
grunt.loadNpmTasks('grunt-bump');
|
||||||
|
grunt.loadNpmTasks('grunt-contrib-clean');
|
||||||
grunt.loadNpmTasks('grunt-contrib-coffee');
|
grunt.loadNpmTasks('grunt-contrib-coffee');
|
||||||
grunt.loadNpmTasks('grunt-exec');
|
grunt.loadNpmTasks('grunt-exec');
|
||||||
|
|
||||||
grunt.registerTask('default', 'concat:coffee coffee concat:js exec:clean');
|
grunt.registerTask('default', 'concat:coffee coffee concat:js clean');
|
||||||
grunt.registerTask('release', 'concat:meta concat:latest default exec:commit exec:push');
|
grunt.registerTask('release', 'concat:meta concat:latest default exec:commit exec:push');
|
||||||
grunt.registerTask('patch', 'bump');
|
grunt.registerTask('patch', 'bump');
|
||||||
grunt.registerTask('upgrade', 'bump:minor');
|
grunt.registerTask('upgrade', 'bump:minor');
|
||||||
|
|||||||
@ -9,6 +9,7 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"grunt-bump": "0.0.x",
|
"grunt-bump": "0.0.x",
|
||||||
|
"grunt-contrib-clean": "0.3.x",
|
||||||
"grunt-contrib-coffee": "0.3.x",
|
"grunt-contrib-coffee": "0.3.x",
|
||||||
"grunt-exec": "0.3.x",
|
"grunt-exec": "0.3.x",
|
||||||
"grunt-image-embed": "0.0.x"
|
"grunt-image-embed": "0.0.x"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user