cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nikhi...@apache.org
Subject cordova-lib git commit: CB-11042: Add cordova run option to skip prepare
Date Fri, 15 Apr 2016 22:34:14 GMT
Repository: cordova-lib
Updated Branches:
  refs/heads/master 2877e3343 -> a01ff2b18


CB-11042: Add cordova run option to skip prepare

 This closes #426


Project: http://git-wip-us.apache.org/repos/asf/cordova-lib/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-lib/commit/a01ff2b1
Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/a01ff2b1
Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/a01ff2b1

Branch: refs/heads/master
Commit: a01ff2b18bcda7d7a6de6b892024019f34b087f0
Parents: 2877e33
Author: Jason Ginchereau <jasongin@microsoft.com>
Authored: Tue Apr 12 13:57:06 2016 -0700
Committer: Nikhil Khandelwal <nikhilkh@microsoft.com>
Committed: Fri Apr 15 15:33:49 2016 -0700

----------------------------------------------------------------------
 cordova-lib/src/cordova/run.js | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/a01ff2b1/cordova-lib/src/cordova/run.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/cordova/run.js b/cordova-lib/src/cordova/run.js
index 046b1da..323bf37 100644
--- a/cordova-lib/src/cordova/run.js
+++ b/cordova-lib/src/cordova/run.js
@@ -32,8 +32,10 @@ module.exports = function run(options) {
         var hooksRunner = new HooksRunner(projectRoot);
         return hooksRunner.fire('before_run', options)
         .then(function() {
-            // Run a prepare first, then shell out to run
-            return require('./cordova').raw.prepare(options);
+            if (!options.options.noprepare) {
+                // Run a prepare first, then shell out to run
+                return require('./cordova').raw.prepare(options);
+            }
         }).then(function() {
             // Deploy in parallel (output gets intermixed though...)
             return Q.all(options.platforms.map(function(platform) {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message