Skip to content
Permalink
Browse files

Build/grunt: Add a clean task. Good enough for now, but not really a …

…good implementation
  • Loading branch information...
jzaefferer committed Mar 19, 2012
1 parent 5f95e7c commit 72d3aa2740ab8fc079098e8656f41e40c01ee550
Showing with 8 additions and 0 deletions.
  1. +8 −0 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

0 comments on commit 72d3aa2

Please sign in to comment.
You can’t perform that action at this time.