Skip to content
Permalink
Browse files

Build/grunt: Fix copying of binary files

  • Loading branch information...
jzaefferer committed Mar 22, 2012
1 parent 12832b7 commit 610e7949764462e50be308e2c15745004b4a267c
Showing with 2 additions and 1 deletion.
  1. +2 −1 grunt.js
@@ -438,6 +438,7 @@ task.registerTask( "download_themes", function() {
});

task.registerTask( "copy_themes", function() {
var fs = require( "fs" );
// each package includes the base theme, ignore that
var filter = /themes\/base/;
var files = file.expand( "dist/tmp/*/development-bundle/themes/**/*" ).filter(function( file ) {
@@ -447,7 +448,7 @@ task.registerTask( "copy_themes", function() {
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" );
file.copy( fileName, target + targetFile );
file.write( target + targetFile, fs.readFileSync( fileName ) );
});

// copy minified base theme from regular release

0 comments on commit 610e794

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