aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2013-04-30 16:56:11 -0400
committerScott González <scott.gonzalez@gmail.com>2013-04-30 16:56:24 -0400
commit562f88472237288f4e46a4944e9bf77a3dd205a7 (patch)
treed518b8a5c25b7a07f32f750801b2a6af7848002c
parenta74b69e7c2a1e926f393f275d9abac3e58aee01b (diff)
downloadjquery-ui-562f88472237288f4e46a4944e9bf77a3dd205a7.tar.gz
jquery-ui-562f88472237288f4e46a4944e9bf77a3dd205a7.zip
Release: Ability to provide a different repo for testing.
-rw-r--r--build/release/release.js42
1 files changed, 40 insertions, 2 deletions
diff --git a/build/release/release.js b/build/release/release.js
index 159345b99..3cbee64b7 100644
--- a/build/release/release.js
+++ b/build/release/release.js
@@ -4,13 +4,13 @@
// Usage:
// stable release: node release.js
// pre-release: node release.js --pre-release {version}
+// test run: node release.js --remote=user/repo
"use strict";
-var baseDir, repoDir, prevVersion, newVersion, nextVersion, tagTime, preRelease,
+var baseDir, repoDir, prevVersion, newVersion, nextVersion, tagTime, preRelease, repo,
fs = require( "fs" ),
rnewline = /\r?\n/,
- repo = "git@github.com:jquery/jquery-ui.git",
branch = "master";
walk([
@@ -357,6 +357,44 @@ function writePackage( pkg ) {
}
function bootstrap( fn ) {
+ getRemote(function( remote ) {
+ repo = "git@github.com:" + remote + ".git";
+ _bootstrap( fn );
+ });
+}
+
+function getRemote( fn ) {
+ var matches, remote;
+
+ console.log( "Determining remote repo..." );
+ process.argv.forEach(function( arg ) {
+ matches = /--remote=(.+)/.exec( arg );
+ if ( matches ) {
+ remote = matches[ 1 ];
+ }
+ });
+
+ if ( remote ) {
+ fn( remote );
+ return;
+ }
+
+ console.log();
+ console.log( " !!!!!!!!!!!!!!!!!!!!!!!!!!!!" );
+ console.log( " !!!!!!!!!!!!!!!!!!!!!!!!!!!!" );
+ console.log( " !! !!" );
+ console.log( " !! Using jquery/jquery-ui !!" );
+ console.log( " !! !!" );
+ console.log( " !!!!!!!!!!!!!!!!!!!!!!!!!!!!" );
+ console.log( " !!!!!!!!!!!!!!!!!!!!!!!!!!!!" );
+ console.log();
+ console.log( "Press enter to continue, or ctrl+c to cancel." );
+ prompt(function() {
+ fn( "jquery/jquery-ui" );
+ });
+}
+
+function _bootstrap( fn ) {
console.log( "Determining release type..." );
preRelease = process.argv.indexOf( "--pre-release" );
if ( preRelease !== -1 ) {