Skip to content

Commit

Permalink
Build/grunt: Add a clean task. Good enough for now, but not really a …
Browse files Browse the repository at this point in the history
…good implementation
  • Loading branch information
jzaefferer committed Mar 19, 2012
1 parent 5f95e7c commit 72d3aa2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions grunt.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 72d3aa2

Please sign in to comment.