Skip to content

Commit

Permalink
Build: Include all the files published to the CDN in npm/Bower packages
Browse files Browse the repository at this point in the history
Both unminified & minified versions of JS & CSS files are included, for all
themes, as well as images.

Fixes gh-2011
Closes gh-2059
  • Loading branch information
mgol authored Mar 23, 2022
1 parent 54074fc commit e21a254
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions build/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,20 @@ Release.define( {
shell.mkdir( "-p", "dist/cdn" );
shell.cp( tmpFolder + "/jquery-ui*.js", "dist/cdn" );
shell.cp( "-r", tmpFolder + "/themes", "dist/cdn" );

// Copy all the files to be published on the CDN to the dist directory
// as well.
shell.cp( "dist/cdn/jquery-ui.js", "dist" );
shell.cp( "dist/cdn/jquery-ui.min.js", "dist" );
shell.cp( "-r", "dist/cdn/themes", "dist" );

Release.exec( "git add --force dist/jquery-ui.js",
"Error adding dist/jquery-ui.js." );
Release.exec( "git add --force dist/jquery-ui.min.js",
"Error adding dist/jquery-ui.min.js." );
Release.exec( "git add --force dist/themes",
"Error adding dist/themes." );

fn( files );
} );
}
Expand Down

0 comments on commit e21a254

Please sign in to comment.