cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [2/5] git commit: CB-7228: Cordova prepare --browserify runs on all installed plugins
Date Tue, 05 Aug 2014 17:51:12 GMT
CB-7228: Cordova prepare --browserify runs on all installed plugins


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

Branch: refs/heads/master
Commit: f260954f825b4f2afa67c59be9515160d79164a4
Parents: 6e47734
Author: Suraj Pindoria <suraj.pindoria@yahoo.com>
Authored: Tue Jul 29 15:57:19 2014 -0700
Committer: Suraj Pindoria <suraj.pindoria@yahoo.com>
Committed: Tue Jul 29 15:57:19 2014 -0700

----------------------------------------------------------------------
 cordova-lib/src/cordova/prepare.js | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/f260954f/cordova-lib/src/cordova/prepare.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/cordova/prepare.js b/cordova-lib/src/cordova/prepare.js
index 9ba5610..529cbf0 100644
--- a/cordova-lib/src/cordova/prepare.js
+++ b/cordova-lib/src/cordova/prepare.js
@@ -94,6 +94,10 @@ function prepare(options) {
             // Call plugman --prepare for this platform. sets up js-modules appropriately.
             var plugins_dir = path.join(projectRoot, 'plugins');
             events.emit('verbose', 'Calling plugman.prepare for platform "' + platform +
'"');
+
+            if (options.browserify) {
+                plugman.prepare = require('../plugman/prepare-browserify');
+            }
             plugman.prepare(platformPath, platform, plugins_dir);
 
             // Make sure that config changes for each existing plugin is in place


Mime
View raw message