aboutsummaryrefslogtreecommitdiffstats
path: root/build/release.js
diff options
context:
space:
mode:
authorTimmy Willison <timmywillisn@gmail.com>2014-01-23 15:45:23 -0500
committerTimmy Willison <timmywillisn@gmail.com>2014-01-23 16:00:54 -0500
commitde7702ac59889177b0dd622d3b5503004abf0258 (patch)
treeb86aa8140d7769d5c5f6cfd9f61b92388b1a8368 /build/release.js
parenta20494228d51c57c454ff9f10a4ba8bbdda0e49c (diff)
downloadjquery-de7702ac59889177b0dd622d3b5503004abf0258.tar.gz
jquery-de7702ac59889177b0dd622d3b5503004abf0258.zip
Release: Instantiate a zip archiver, run archivers async
Diffstat (limited to 'build/release.js')
-rw-r--r--build/release.js19
1 files changed, 10 insertions, 9 deletions
diff --git a/build/release.js b/build/release.js
index ab4b908f8..e7da79988 100644
--- a/build/release.js
+++ b/build/release.js
@@ -74,15 +74,15 @@ module.exports = function( Release ) {
});
}
- function buildGoogleCDN( next ) {
- makeArchive( "googlecdn", googleFilesCDN, next );
+ function buildGoogleCDN() {
+ makeArchive( "googlecdn", googleFilesCDN );
}
- function buildMicrosoftCDN( next ) {
- makeArchive( "mscdn", msFilesCDN, next );
+ function buildMicrosoftCDN() {
+ makeArchive( "mscdn", msFilesCDN );
}
- function makeArchive( cdn, files, next ) {
+ function makeArchive( cdn, files ) {
if ( Release.preRelease ) {
console.log( "Skipping archive creation for " + cdn + "; this is a beta release." );
return;
@@ -90,7 +90,7 @@ module.exports = function( Release ) {
console.log( "Creating production archive for " + cdn );
- var archiver = require( "archiver" ),
+ var archiver = require( "archiver" )( "zip" ),
md5file = cdnFolder + "/" + cdn + "-md5.txt",
output = fs.createWriteStream( cdnFolder + "/" + cdn + "-jquery-" + Release.newVersion + ".zip" );
@@ -98,7 +98,6 @@ module.exports = function( Release ) {
throw err;
});
- output.on( "close", next );
archiver.pipe( output );
files = files.map(function( item ) {
@@ -138,8 +137,10 @@ module.exports = function( Release ) {
* Release completion
*/
complete: function() {
- // Build CDN archives
- Release._walk([ buildGoogleCDN, buildMicrosoftCDN, _complete ]);
+ // Build CDN archives async
+ buildGoogleCDN();
+ buildMicrosoftCDN();
+ _complete();
},
/**
* Our trac milestones are different than the new version