diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-03-19 22:57:51 +0100 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-03-19 22:57:51 +0100 |
commit | 72d3aa2740ab8fc079098e8656f41e40c01ee550 (patch) | |
tree | 9941dfc576051304071c6c648882e2347432af5a /grunt.js | |
parent | 5f95e7c815874afa562f54c9ca9f9d893f677dd7 (diff) | |
download | jquery-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.js | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |