cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [4/9] git commit: adding support for prepare flag
Date Fri, 13 Jun 2014 23:46:20 GMT
adding support for prepare flag


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

Branch: refs/heads/master
Commit: e09155511617d81d3dbf42f7ab7a2dab16716fa8
Parents: 171c981
Author: Anis Kadri <anis@apache.org>
Authored: Tue Jun 10 16:07:10 2014 -0700
Committer: Anis Kadri <anis@apache.org>
Committed: Tue Jun 10 16:07:10 2014 -0700

----------------------------------------------------------------------
 cordova-lib/src/plugman/plugman.js | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/e0915551/cordova-lib/src/plugman/plugman.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/plugman/plugman.js b/cordova-lib/src/plugman/plugman.js
index 6a54ff5..83cfef8 100644
--- a/cordova-lib/src/plugman/plugman.js
+++ b/cordova-lib/src/plugman/plugman.js
@@ -63,7 +63,7 @@ plugman = {
 addProperty(plugman, 'install', './install', true);
 addProperty(plugman, 'uninstall', './uninstall', true);
 addProperty(plugman, 'fetch', './fetch', true);
-addProperty(plugman, 'prepare', './prepare');
+//addProperty(plugman, 'prepare', './prepare');
 addProperty(plugman, 'config', './config', true);
 addProperty(plugman, 'owner', './owner', true);
 addProperty(plugman, 'adduser', './adduser', true);
@@ -89,6 +89,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', './prepare-browserify')
:
+                                        addProperty(plugman, 'prepare', './prepare');
         var cli_variables = {}
         if (cli_opts.variable) {
             cli_opts.variable.forEach(function (variable) {
@@ -110,13 +112,16 @@ plugman.commands =  {
                 return plugman.raw.install(cli_opts.platform, cli_opts.project, pluginSrc,
cli_opts.plugins_dir, opts);
             })
         });
-
+        
         return p;
     },
     'uninstall': function(cli_opts) {
         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