Skip to content

Commit 38aac37

Browse files
committed
Grunt: Replace custom rimraf-based clean task with grunt-contrib's clean task
1 parent 43c6663 commit 38aac37

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

build/tasks/build.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,6 @@ grunt.registerTask( "copy_themes", function() {
181181
});
182182
});
183183

184-
grunt.registerTask( "clean", function() {
185-
require( "rimraf" ).sync( "dist" );
186-
});
187-
188184
grunt.registerTask( "authors", function() {
189185
var done = this.async();
190186

grunt.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ uiFiles.forEach(function( file ) {
8181
});
8282

8383
// grunt plugins
84+
grunt.loadNpmTasks( "grunt-contrib" );
8485
grunt.loadNpmTasks( "grunt-css" );
8586
grunt.loadNpmTasks( "grunt-html" );
8687
grunt.loadNpmTasks( "grunt-compare-size" );
@@ -131,6 +132,7 @@ grunt.initConfig({
131132
bannerCSS: createBanner( cssFiles )
132133
},
133134
compare_size: compareFiles,
135+
clean: ["dist"],
134136
concat: {
135137
ui: {
136138
src: [ "<banner:meta.bannerAll>", stripBanner( uiFiles ) ],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@
2727
"dependencies": {},
2828
"devDependencies": {
2929
"grunt": "0.3.9",
30+
"grunt-contrib": "0.0.7",
3031
"grunt-css": "0.2.0",
3132
"grunt-compare-size": "0.1.4",
3233
"grunt-html": "0.1.1",
3334
"grunt-junit": "0.1.4",
3435
"request": "2.9.153",
35-
"rimraf": "2.0.1",
3636
"testswarm": "0.2.2"
3737
},
3838
"keywords": []

0 commit comments

Comments
 (0)