cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [3/7] cordova-cli git commit: CB-12862 all: Added searchpath as a config option
Date Tue, 20 Jun 2017 17:57:59 GMT
CB-12862 all: Added searchpath as a config option


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

Branch: refs/heads/master
Commit: 1dbca5a3a2889f89a9d7088a68f2c773233c5263
Parents: 3045614
Author: Lui <xizi.lui@sap.com>
Authored: Mon May 29 10:35:58 2017 -0400
Committer: Lui <xizi.lui@sap.com>
Committed: Mon May 29 10:35:58 2017 -0400

----------------------------------------------------------------------
 src/cli.js | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/1dbca5a3/src/cli.js
----------------------------------------------------------------------
diff --git a/src/cli.js b/src/cli.js
index 184a801..e4d7b86 100644
--- a/src/cli.js
+++ b/src/cli.js
@@ -469,6 +469,10 @@ function cli(inputArgs) {
            // User explicitly did not pass in browserify
            args.browserify = conf.get('browserify');
         }
+        if (args.searchpath === undefined) {
+            // User explicitly did not pass in searchpath
+            args.searchpath = conf.get('searchpath');
+        }
 
         var download_opts = { searchpath : args.searchpath
                             , noregistry : args.noregistry


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message