aboutsummaryrefslogtreecommitdiffstats
path: root/build/release/release.js
diff options
context:
space:
mode:
Diffstat (limited to 'build/release/release.js')
-rw-r--r--build/release/release.js37
1 files changed, 4 insertions, 33 deletions
diff --git a/build/release/release.js b/build/release/release.js
index 77430d8d1..0e41702e9 100644
--- a/build/release/release.js
+++ b/build/release/release.js
@@ -1,5 +1,7 @@
#!/usr/bin/env node
-/*global cat:true cd:true cp:true echo:true exec:true exit:true ls:true*/
+/*global cat:true cd:true echo:true exec:true exit:true*/
+
+"use strict";
var baseDir, repoDir, prevVersion, newVersion, nextVersion, tagTime,
fs = require( "fs" ),
@@ -41,9 +43,6 @@ walk([
section( "gathering contributors" ),
gatherContributors,
- section( "generating quick download" ),
- generateQuickDownload,
-
section( "updating trac" ),
updateTrac,
confirm
@@ -261,34 +260,6 @@ function gatherContributors() {
echo( "Stored contributors in " + contributorsPath.cyan + "." );
}
-function generateQuickDownload() {
- var config,
- downloadDir = repoDir + "/node_modules/download.jqueryui.com",
- filename = "jquery-ui-" + newVersion + ".custom.zip",
- destination = baseDir + "/" + filename;
-
- cd( downloadDir );
-
- // Update jQuery UI version for download builder
- config = JSON.parse( cat( "config.json" ) );
- config.jqueryUi = newVersion;
- JSON.stringify( config ).to( "config.json" );
-
- // Generate quick download
- // TODO: Find a way to avoid having to clone jquery-ui inside download builder
- if ( exec( "grunt prepare build" ).code !== 0 ) {
- abort( "Error generating quick download." );
- }
- cp( downloadDir + "/release/" + filename, destination );
- // cp() doesn't have error handling, so check for the file
- if ( ls( destination ).length !== 1 ) {
- abort( "Error copying quick download." );
- }
-
- // Go back to repo directory for consistency
- cd( repoDir );
-}
-
function updateTrac() {
echo( newVersion.cyan + " was tagged at " + tagTime.cyan + "." );
echo( "Close the " + newVersion.cyan + " Milestone with the above date and time." );
@@ -423,7 +394,7 @@ function abort( msg ) {
function walk( methods ) {
var method = methods.shift();
- function next( error ) {
+ function next() {
if ( methods.length ) {
walk( methods );
}