aboutsummaryrefslogtreecommitdiffstats
path: root/grunt.js
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2012-03-19 22:57:51 +0100
committerJörn Zaefferer <joern.zaefferer@gmail.com>2012-03-19 22:57:51 +0100
commit72d3aa2740ab8fc079098e8656f41e40c01ee550 (patch)
tree9941dfc576051304071c6c648882e2347432af5a /grunt.js
parent5f95e7c815874afa562f54c9ca9f9d893f677dd7 (diff)
downloadjquery-ui-72d3aa2740ab8fc079098e8656f41e40c01ee550.tar.gz
jquery-ui-72d3aa2740ab8fc079098e8656f41e40c01ee550.zip
Build/grunt: Add a clean task. Good enough for now, but not really a good implementation
Diffstat (limited to 'grunt.js')
-rw-r--r--grunt.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/grunt.js b/grunt.js
index f256f4766..e7395285a 100644
--- a/grunt.js
+++ b/grunt.js
@@ -459,6 +459,14 @@ task.registerTask( "copy_themes", function() {
});
});
+task.registerTask( "clean", function() {
+ // TODO use node methods and keep the dir, only delete its content
+ utils.spawn({
+ cmd: "rm",
+ args: [ "-rf", "dist" ]
+ }, this.async());
+});
+
// TODO merge with code in jQuery Core, share as grunt plugin/npm
// this here actually uses the provided filenames in the output
// the helpers should just be regular functions, no need to share those with the world