Skip to content

Commit 4f3c1e9

Browse files
committed
Revert "Grunt: Replace custom rimraf-based clean task with grunt-contrib's clean task"
This reverts commit 38aac37. As long as grunt-contrib has a coffeescript dependency, we won't use it.
1 parent 7c74af7 commit 4f3c1e9

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

build/tasks/build.js

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

184+
grunt.registerTask( "clean", function() {
185+
require( "rimraf" ).sync( "dist" );
186+
});
187+
184188
grunt.registerTask( "authors", function() {
185189
var done = this.async();
186190

grunt.js

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

8383
// grunt plugins
84-
grunt.loadNpmTasks( "grunt-contrib" );
8584
grunt.loadNpmTasks( "grunt-css" );
8685
grunt.loadNpmTasks( "grunt-html" );
8786
grunt.loadNpmTasks( "grunt-compare-size" );
@@ -132,7 +131,6 @@ grunt.initConfig({
132131
bannerCSS: createBanner( cssFiles )
133132
},
134133
compare_size: compareFiles,
135-
clean: ["dist"],
136134
concat: {
137135
ui: {
138136
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",
3130
"grunt-css": "0.2.0",
3231
"grunt-compare-size": "0.1.4",
3332
"grunt-html": "0.1.1",
3433
"grunt-junit": "0.1.4",
3534
"request": "2.9.153",
35+
"rimraf": "2.0.1",
3636
"testswarm": "0.2.3"
3737
},
3838
"keywords": []

0 commit comments

Comments
 (0)