You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by an...@apache.org on 2016/08/02 07:15:23 UTC
cordova-lib git commit: CB-11493: Add cordova emulate option to skip
prepare
Repository: cordova-lib
Updated Branches:
refs/heads/master a15b24da0 -> a0d8e2833
CB-11493: Add cordova emulate option to skip prepare
This closes #459
Project: http://git-wip-us.apache.org/repos/asf/cordova-lib/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-lib/commit/a0d8e283
Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/a0d8e283
Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/a0d8e283
Branch: refs/heads/master
Commit: a0d8e283348f3e99b80ede16220dca845d62d4ae
Parents: a15b24d
Author: gruppjo <jo...@web.de>
Authored: Mon Jun 27 16:50:02 2016 +0200
Committer: Vladimir Kotikov <v-...@microsoft.com>
Committed: Tue Aug 2 10:10:15 2016 +0300
----------------------------------------------------------------------
cordova-lib/src/cordova/emulate.js | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/a0d8e283/cordova-lib/src/cordova/emulate.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/cordova/emulate.js b/cordova-lib/src/cordova/emulate.js
index b0b61aa..642e55c 100644
--- a/cordova-lib/src/cordova/emulate.js
+++ b/cordova-lib/src/cordova/emulate.js
@@ -35,8 +35,10 @@ module.exports = function emulate(options) {
var hooksRunner = new HooksRunner(projectRoot);
return hooksRunner.fire('before_emulate', options)
.then(function() {
- // Run a prepare first!
- return require('./cordova').raw.prepare(options);
+ if (!options.options.noprepare) {
+ // Run a prepare first!
+ 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