mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Release: Remove externals directory from CDN zip
Closes gh-1741
This commit is contained in:
parent
8c66934434
commit
7b7b9b6d86
@ -35,6 +35,14 @@ function replaceAtVersion() {
|
|||||||
return matches;
|
return matches;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function removeExternals ( packager ) {
|
||||||
|
Object.keys( packager.builtFiles ).forEach( function( filepath ) {
|
||||||
|
if ( /^external\//.test( filepath ) ) {
|
||||||
|
delete packager.builtFiles[ filepath ];
|
||||||
|
}
|
||||||
|
} );
|
||||||
|
}
|
||||||
|
|
||||||
function addManifest( packager ) {
|
function addManifest( packager ) {
|
||||||
var output = packager.builtFiles;
|
var output = packager.builtFiles;
|
||||||
output.MANIFEST = Object.keys( output ).sort( function( a, b ) {
|
output.MANIFEST = Object.keys( output ).sort( function( a, b ) {
|
||||||
@ -62,6 +70,7 @@ function buildCDNPackage( callback ) {
|
|||||||
themeVars: null
|
themeVars: null
|
||||||
} );
|
} );
|
||||||
packager.ready.then( function() {
|
packager.ready.then( function() {
|
||||||
|
removeExternals( packager );
|
||||||
addManifest( packager );
|
addManifest( packager );
|
||||||
packager.toZip( target, {
|
packager.toZip( target, {
|
||||||
basedir: ""
|
basedir: ""
|
||||||
|
Loading…
Reference in New Issue
Block a user