cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [1/4] git commit: adding flag for browserify
Date Tue, 06 May 2014 01:21:41 GMT
Repository: cordova-plugman
Updated Branches:
  refs/heads/browserify [created] 17ae9332b


adding flag for browserify


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

Branch: refs/heads/browserify
Commit: 2b707e5bf28f8818b5368186f4f39098eeeafb41
Parents: 013adc6
Author: Anis Kadri <anis@apache.org>
Authored: Wed Apr 30 14:22:55 2014 -0700
Committer: Anis Kadri <anis@apache.org>
Committed: Wed Apr 30 14:22:55 2014 -0700

----------------------------------------------------------------------
 plugman.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/2b707e5b/plugman.js
----------------------------------------------------------------------
diff --git a/plugman.js b/plugman.js
index 4aa1843..258ef08 100644
--- a/plugman.js
+++ b/plugman.js
@@ -64,7 +64,7 @@ addProperty(plugman, 'help', './src/help');
 addProperty(plugman, 'install', './src/install', true);
 addProperty(plugman, 'uninstall', './src/uninstall', true);
 addProperty(plugman, 'fetch', './src/fetch', true);
-addProperty(plugman, 'prepare', './src/prepare');
+//addProperty(plugman, 'prepare', './src/prepare');
 addProperty(plugman, 'config', './src/config', true);
 addProperty(plugman, 'owner', './src/owner', true);
 addProperty(plugman, 'adduser', './src/adduser', true);
@@ -90,6 +90,8 @@ plugman.commands =  {
         if(!cli_opts.platform || !cli_opts.project || !cli_opts.plugin) {
             return console.log(plugman.help());
         }
+        cli_opts.browserify === true ?  addProperty(plugman, 'prepare', './src/prepare-browserify')
:
+                                        addProperty(plugman, 'prepare', './src/prepare');
         var cli_variables = {}
         if (cli_opts.variable) {
             cli_opts.variable.forEach(function (variable) {
@@ -118,6 +120,9 @@ plugman.commands =  {
         if(!cli_opts.platform || !cli_opts.project || !cli_opts.plugin) {
             return console.log(plugman.help());
         }
+        
+        cli_opts.browserify === true ?  addProperty(plugman, 'prepare', './src/prepare-browserify')
:
+                                        addProperty(plugman, 'prepare', './src/prepare');
 
         var p = Q();
         cli_opts.plugin.forEach(function (pluginSrc) {


Mime
View raw message