diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2022-03-23 12:05:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-23 12:05:10 +0100 |
commit | e21a2543b55680f23aaa7efa38f3288b8e767e7d (patch) | |
tree | abfee245fad1ff4921c756357c1426d8d343874e /build | |
parent | 54074fcb1d228ecb06d95362f8db57293d3ba8f4 (diff) | |
download | jquery-ui-e21a2543b55680f23aaa7efa38f3288b8e767e7d.tar.gz jquery-ui-e21a2543b55680f23aaa7efa38f3288b8e767e7d.zip |
Build: Include all the files published to the CDN in npm/Bower packages
Both unminified & minified versions of JS & CSS files are included, for all
themes, as well as images.
Fixes gh-2011
Closes gh-2059
Diffstat (limited to 'build')
-rw-r--r-- | build/release.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/build/release.js b/build/release.js index 193f95895..0323a20bd 100644 --- a/build/release.js +++ b/build/release.js @@ -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 ); } ); } |