]> source.dussan.org Git - jquery-ui.git/commitdiff
Revert "Grunt: Replace custom rimraf-based clean task with grunt-contrib's clean...
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Sat, 16 Jun 2012 12:36:57 +0000 (14:36 +0200)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Sat, 16 Jun 2012 12:39:46 +0000 (14:39 +0200)
This reverts commit 38aac3770cc1e22e5e7225b90c47b37d857be13a.

As long as grunt-contrib has a coffeescript dependency, we won't use it.

build/tasks/build.js
grunt.js
package.json

index e879c1c997770358a9059bdb366a511153880754..51c2fefdb674779c7be5e7140da4acb62a1779d5 100644 (file)
@@ -181,6 +181,10 @@ grunt.registerTask( "copy_themes", function() {
        });
 });
 
+grunt.registerTask( "clean", function() {
+       require( "rimraf" ).sync( "dist" );
+});
+
 grunt.registerTask( "authors", function() {
        var done = this.async();
 
index 5af87e7a30b4ee39490fb8c64f169f0bf19cc209..8ec70c647450ddf51c6e2ad76646e8a3a9c235de 100644 (file)
--- a/grunt.js
+++ b/grunt.js
@@ -81,7 +81,6 @@ uiFiles.forEach(function( file ) {
 });
 
 // grunt plugins
-grunt.loadNpmTasks( "grunt-contrib" );
 grunt.loadNpmTasks( "grunt-css" );
 grunt.loadNpmTasks( "grunt-html" );
 grunt.loadNpmTasks( "grunt-compare-size" );
@@ -132,7 +131,6 @@ grunt.initConfig({
                bannerCSS: createBanner( cssFiles )
        },
        compare_size: compareFiles,
-       clean: ["dist"],
        concat: {
                ui: {
                        src: [ "<banner:meta.bannerAll>", stripBanner( uiFiles ) ],
index 0ffe73645d2d48aad043d445173869d4c8fb6b59..3c371bf76cb6477c023fa6a0669292e2e8a4e560 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.3"
   },
   "keywords": []