Skip to content

Commit 8d21dce

Browse files
authored
Merge branch 'jquery:main' into master
2 parents b58cd30 + 349ee77 commit 8d21dce

File tree

4 files changed

+65
-15
lines changed

4 files changed

+65
-15
lines changed

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
demos
2+
/dist/cdn
23
tests
34
.editorconfig
45
.eslintrc.json

AUTHORS.txt

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,3 +331,35 @@ Peter Dave Hello <[email protected]>
331331
Johannes Schäfer <[email protected]>
332332
Ville Skyttä <[email protected]>
333333
Ryan Oriecuia <[email protected]>
334+
Sergei Ratnikov <[email protected]>
335+
336+
Evelyn Masso <[email protected]>
337+
338+
Simon Asika <[email protected]>
339+
Kevin Cupp <[email protected]>
340+
Jeremy Mickelson <[email protected]>
341+
Kyle Rosenberg <[email protected]>
342+
Petri Partio <[email protected]>
343+
344+
Luke Brookhart <[email protected]>
345+
346+
Eirik Sletteberg <[email protected]>
347+
Albert Johansson <[email protected]>
348+
349+
Robert Brignull <[email protected]>
350+
351+
Maksymenkov Eugene <[email protected]>
352+
353+
Gez Quinn <[email protected]>
354+
jigar gala <[email protected]>
355+
Florian Wegscheider <[email protected]>
356+
Fatér Zsolt <[email protected]>
357+
Szabolcs Szabolcsi-Toth <[email protected]>
358+
Jérémy Munsch <[email protected]>
359+
Hrvoje Novosel <[email protected]>
360+
Paul Capron <[email protected]>
361+
Micah Miller <[email protected]>
362+
363+
Mikolaj Wolicki <[email protected]>
364+
Patrick McKay <[email protected]>
365+
c-lambert <[email protected]>

build/release-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ script( Release );
3737

3838
// Ignores actual version installed, should be good enough for a test
3939
if ( shell.exec( "npm ls --depth 0 | grep download.jqueryui.com" ).code === 1 ) {
40-
shell.exec( "npm install " + script.dependencies.join( " " ) );
40+
shell.exec( "npm install --no-save " + script.dependencies.join( " " ) );
4141
}
4242

4343
// If AUTHORS.txt is outdated, this will update it

build/release.js

Lines changed: 31 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,21 @@ function addManifest( packager ) {
5959
function buildCDNPackage( callback ) {
6060
console.log( "Building CDN package" );
6161
var JqueryUi = require( "download.jqueryui.com/lib/jquery-ui" );
62-
var Package = require( "download.jqueryui.com/lib/package-1-12-themes" );
62+
var PackageWithoutThemes = require( "download.jqueryui.com/lib/package-1-13" );
63+
var PackageOfThemes = require( "download.jqueryui.com/lib/package-1-13-themes" );
6364
var Packager = require( "node-packager" );
65+
66+
// PackageOfThemes doesn't contain JS files, PackageWithoutThemes doesn't contain themes;
67+
// we need both.
68+
function Package() {
69+
70+
// PackageOfThemes invokes PackageWithoutThemes's constructor in its own so we don't
71+
// need to do it by ourselves; we just need to handle prototypes that way.
72+
PackageOfThemes.apply( this, arguments );
73+
}
74+
75+
Object.assign( Package.prototype, PackageWithoutThemes.prototype, PackageOfThemes.prototype );
76+
6477
var jqueryUi = new JqueryUi( path.resolve( "." ) );
6578
var target = fs.createWriteStream( "../" + jqueryUi.pkg.name + "-" + jqueryUi.pkg.version +
6679
"-cdn.zip" );
@@ -71,18 +84,22 @@ function buildCDNPackage( callback ) {
7184
jqueryUi: jqueryUi,
7285
themeVars: null
7386
} );
74-
packager.ready.then( function() {
75-
removeExternals( packager );
76-
addManifest( packager );
77-
packager.toZip( target, {
78-
basedir: ""
79-
}, function( error ) {
80-
if ( error ) {
81-
Release.abort( "Failed to zip CDN package", error );
82-
}
83-
callback();
87+
packager.ready
88+
.then( function() {
89+
removeExternals( packager );
90+
addManifest( packager );
91+
packager.toZip( target, {
92+
basedir: ""
93+
}, function( error ) {
94+
if ( error ) {
95+
Release.abort( "Failed to zip the CDN package", error );
96+
}
97+
callback();
98+
} );
99+
} )
100+
.catch( function( error ) {
101+
Release.abort( "Failed to create the CDN package", error );
84102
} );
85-
} );
86103
}
87104

88105
Release.define( {
@@ -123,7 +140,7 @@ Release.define( {
123140
};
124141

125142
module.exports.dependencies = [
126-
"download.jqueryui.com@2.1.2",
143+
"download.jqueryui.com@2.2.1",
127144
128-
"shelljs@0.2.6"
145+
"shelljs@0.8.4"
129146
];

0 commit comments

Comments
 (0)