mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Build/grunt: Fix copying of binary files
This commit is contained in:
parent
12832b7c35
commit
610e794976
3
grunt.js
3
grunt.js
@ -438,6 +438,7 @@ task.registerTask( "download_themes", function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
task.registerTask( "copy_themes", function() {
|
task.registerTask( "copy_themes", function() {
|
||||||
|
var fs = require( "fs" );
|
||||||
// each package includes the base theme, ignore that
|
// each package includes the base theme, ignore that
|
||||||
var filter = /themes\/base/;
|
var filter = /themes\/base/;
|
||||||
var files = file.expand( "dist/tmp/*/development-bundle/themes/**/*" ).filter(function( file ) {
|
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() ) + "/";
|
var target = "dist/" + template.process( config( "files.themes" ), config() ) + "/";
|
||||||
files.forEach(function( fileName ) {
|
files.forEach(function( fileName ) {
|
||||||
var targetFile = fileName.replace( /dist\/tmp\/\d+\/development-bundle\//, "" ).replace( "jquery-ui-.custom", "jquery-ui" );
|
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
|
// copy minified base theme from regular release
|
||||||
|
Loading…
Reference in New Issue
Block a user