]> source.dussan.org Git - jquery-ui.git/commitdiff
Grunt: Replace custom rimraf-based clean task with grunt-contrib's clean task
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Thu, 14 Jun 2012 10:41:04 +0000 (12:41 +0200)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Thu, 14 Jun 2012 10:41:04 +0000 (12:41 +0200)
build/tasks/build.js
grunt.js
package.json

index 51c2fefdb674779c7be5e7140da4acb62a1779d5..e879c1c997770358a9059bdb366a511153880754 100644 (file)
@@ -181,10 +181,6 @@ grunt.registerTask( "copy_themes", function() {
        });
 });
 
-grunt.registerTask( "clean", function() {
-       require( "rimraf" ).sync( "dist" );
-});
-
 grunt.registerTask( "authors", function() {
        var done = this.async();
 
index af751246c7ae69b0717e921a32240b7ad9af01a7..41145bf93c5d8c7bc9ca73b66b66d9bf8dff12f8 100644 (file)
--- a/grunt.js
+++ b/grunt.js
@@ -81,6 +81,7 @@ uiFiles.forEach(function( file ) {
 });
 
 // grunt plugins
+grunt.loadNpmTasks( "grunt-contrib" );
 grunt.loadNpmTasks( "grunt-css" );
 grunt.loadNpmTasks( "grunt-html" );
 grunt.loadNpmTasks( "grunt-compare-size" );
@@ -131,6 +132,7 @@ grunt.initConfig({
                bannerCSS: createBanner( cssFiles )
        },
        compare_size: compareFiles,
+       clean: ["dist"],
        concat: {
                ui: {
                        src: [ "<banner:meta.bannerAll>", stripBanner( uiFiles ) ],
index 0070bd65cb37a9b6833b21176ddfdb29c655c843..62ae92147da8d4d917adc643bce683e5229019a7 100644 (file)
   "dependencies": {},
   "devDependencies": {
     "grunt": "0.3.9",
+    "grunt-contrib": "0.0.7",
     "grunt-css": "0.2.0",
     "grunt-compare-size": "0.1.4",
     "grunt-html": "0.1.1",
     "grunt-junit": "0.1.4",
     "request": "2.9.153",
-    "rimraf": "2.0.1",
     "testswarm": "0.2.2"
   },
   "keywords": []