mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Build: Fix package generation
jQuery UI 1.12.1 was released using an outdated (at the time of its release) version of the download.jqueryui.com package; the latest ones wouldn't generate relevant JS files. This commit accounts for the changes so that the latest version can be used. Closes gh-1965
This commit is contained in:
parent
cf938e2863
commit
d82ea60d05
@ -59,8 +59,21 @@ function addManifest( packager ) {
|
||||
function buildCDNPackage( callback ) {
|
||||
console.log( "Building CDN package" );
|
||||
var JqueryUi = require( "download.jqueryui.com/lib/jquery-ui" );
|
||||
var Package = require( "download.jqueryui.com/lib/package-1-12-themes" );
|
||||
var PackageWithoutThemes = require( "download.jqueryui.com/lib/package-1-12" );
|
||||
var PackageOfThemes = require( "download.jqueryui.com/lib/package-1-12-themes" );
|
||||
var Packager = require( "node-packager" );
|
||||
|
||||
// PackageOfThemes doesn't contain JS files, PackageWithoutThemes doesn't contain themes;
|
||||
// we need both.
|
||||
function Package() {
|
||||
|
||||
// PackageOfThemes invokes PackageWithoutThemes's constructor in its own so we don't
|
||||
// need to do it by ourselves; we just need to handle prototypes that way.
|
||||
PackageOfThemes.apply( this, arguments );
|
||||
}
|
||||
|
||||
Object.assign( Package.prototype, PackageWithoutThemes.prototype, PackageOfThemes.prototype );
|
||||
|
||||
var jqueryUi = new JqueryUi( path.resolve( "." ) );
|
||||
var target = fs.createWriteStream( "../" + jqueryUi.pkg.name + "-" + jqueryUi.pkg.version +
|
||||
"-cdn.zip" );
|
||||
|
Loading…
Reference in New Issue
Block a user