From 38aac3770cc1e22e5e7225b90c47b37d857be13a Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rn=20Zaefferer?= Date: Thu, 14 Jun 2012 12:41:04 +0200 Subject: [PATCH] Grunt: Replace custom rimraf-based clean task with grunt-contrib's clean task --- build/tasks/build.js | 4 ---- grunt.js | 2 ++ package.json | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/build/tasks/build.js b/build/tasks/build.js index 51c2fefdb..e879c1c99 100644 --- a/build/tasks/build.js +++ b/build/tasks/build.js @@ -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(); diff --git a/grunt.js b/grunt.js index af751246c..41145bf93 100644 --- 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: [ "", stripBanner( uiFiles ) ], diff --git a/package.json b/package.json index 0070bd65c..62ae92147 100644 --- a/package.json +++ b/package.json @@ -27,12 +27,12 @@ "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": [] -- 2.39.5