Skip to content

Commit 463d77d

Browse files
committed
Add clean task
1 parent dca1e42 commit 463d77d

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Gruntfile.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ module.exports = function(grunt) {
2525
'<%= csslint_files %>'
2626
],
2727
// Task configuration.
28+
clean: {
29+
build: ['build']
30+
},
2831
concat: {
2932
core: {
3033
options: {
@@ -161,11 +164,12 @@ module.exports = function(grunt) {
161164
grunt.loadNpmTasks('grunt-contrib-concat');
162165
grunt.loadNpmTasks('grunt-contrib-jshint');
163166
grunt.loadNpmTasks('grunt-contrib-watch');
167+
grunt.loadNpmTasks('grunt-contrib-clean');
164168

165169
// Default task.
166170
grunt.registerTask('default', ['test']);
167171

168-
grunt.registerTask('test', ['jshint', 'concat', 'yuitest']);
172+
grunt.registerTask('test', ['clean', 'jshint', 'concat', 'yuitest']);
169173

170174
//Run the YUITest suite
171175
grunt.registerMultiTask('yuitest', 'Run the YUITests for the project', function() {

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"grunt-contrib-jshint": "~0.3.0",
4242
"grunt-contrib-concat": "~0.1.3",
4343
"grunt-contrib-watch": "~0.3.1",
44-
"yuitest": "~0.7.8"
44+
"yuitest": "~0.7.8",
45+
"grunt-contrib-clean": "~0.4.0"
4546
}
4647
}

0 commit comments

Comments
 (0)