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 <[email protected]> Authored: Tue Apr 12 13:57:06 2016 -0700 Committer: Nikhil Khandelwal <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
