Skip to content

Commit

Permalink
Build: Include JS & CSS (base theme) files in npm/Bower packages
Browse files Browse the repository at this point in the history
Both unminified & minified versions are included.

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

// Copy JS & CSS (base theme) files in unminified & minified
// versions to `dist/`.
shell.cp( "dist/cdn/jquery-ui.js", "dist" );
shell.cp( "dist/cdn/jquery-ui.min.js", "dist" );
shell.cp( "dist/cdn/themes/base/jquery-ui.css", "dist" );
shell.cp( "dist/cdn/themes/base/jquery-ui.min.css", "dist" );

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

fn( files );
} );
}
Expand Down

0 comments on commit 084150c

Please sign in to comment.