diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-03-21 21:19:31 +0100 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-03-21 21:19:31 +0100 |
commit | a84512f9cfb796464e6e9ce4fc5d4a6d4f386635 (patch) | |
tree | 78ae538a442113a8290c72ea293fd41d2037bfd9 /grunt.js | |
parent | 2a1ee3725818c339ab45894db0347e016188e2d8 (diff) | |
download | jquery-ui-a84512f9cfb796464e6e9ce4fc5d4a6d4f386635.tar.gz jquery-ui-a84512f9cfb796464e6e9ce4fc5d4a6d4f386635.zip |
Build/grunt: Use rimraf for clean task. Fix cop_hemes task to correctly rename the -custom.css file
Diffstat (limited to 'grunt.js')
-rw-r--r-- | grunt.js | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -446,7 +446,7 @@ task.registerTask( "copy_themes", function() { // TODO the template.process call shouldn't be necessary var target = "dist/" + template.process( config( "files.themes" ), config() ) + "/"; files.forEach(function( fileName ) { - var targetFile = fileName.replace( /dist\/tmp\/\d+\/development-bundle\//, "" ).replace( "jquery-ui-.custom", "jquery-ui.css" ); + var targetFile = fileName.replace( /dist\/tmp\/\d+\/development-bundle\//, "" ).replace( "jquery-ui-.custom", "jquery-ui" ); file.copy( fileName, target + targetFile ); }); @@ -460,11 +460,7 @@ 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()); + require( "rimraf" ).sync( "dist" ); }); // TODO merge with code in jQuery Core, share as grunt plugin/npm |