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/09 09:31:33 UTC

[4/6] cordova-lib git commit: CB-11493: Add cordova emulate option to skip prepare

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/e4f30cee
Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/e4f30cee
Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/e4f30cee

Branch: refs/heads/6.3.x
Commit: e4f30ceefd39e646d0513c50a1d17900995a4f50
Parents: b5dc35b
Author: gruppjo <jo...@web.de>
Authored: Mon Jun 27 16:50:02 2016 +0200
Committer: Vladimir Kotikov <v-...@microsoft.com>
Committed: Mon Aug 8 10:46:01 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/e4f30cee/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