Skip to content

Commit e21a254

Browse files
authoredMar 23, 2022
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
1 parent 54074fc commit e21a254

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
 

‎build/release.js

+14
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,20 @@ Release.define( {
131131
shell.mkdir( "-p", "dist/cdn" );
132132
shell.cp( tmpFolder + "/jquery-ui*.js", "dist/cdn" );
133133
shell.cp( "-r", tmpFolder + "/themes", "dist/cdn" );
134+
135+
// Copy all the files to be published on the CDN to the dist directory
136+
// as well.
137+
shell.cp( "dist/cdn/jquery-ui.js", "dist" );
138+
shell.cp( "dist/cdn/jquery-ui.min.js", "dist" );
139+
shell.cp( "-r", "dist/cdn/themes", "dist" );
140+
141+
Release.exec( "git add --force dist/jquery-ui.js",
142+
"Error adding dist/jquery-ui.js." );
143+
Release.exec( "git add --force dist/jquery-ui.min.js",
144+
"Error adding dist/jquery-ui.min.js." );
145+
Release.exec( "git add --force dist/themes",
146+
"Error adding dist/themes." );
147+
134148
fn( files );
135149
} );
136150
}

0 commit comments

Comments
 (0)
Please sign in to comment.