cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject [3/4] git commit: Expose util.isCordova as cordova.findProjectRoot()
Date Thu, 16 Jan 2014 18:30:08 GMT
Expose util.isCordova as cordova.findProjectRoot()


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

Branch: refs/heads/master
Commit: 79c799be4da9a4bfab95d9955d4f86469a465b76
Parents: b1d2555
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Thu Jan 16 10:59:03 2014 -0500
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Thu Jan 16 10:59:03 2014 -0500

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


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/79c799be/cordova.js
----------------------------------------------------------------------
diff --git a/cordova.js b/cordova.js
index 45ad0c2..164377c 100644
--- a/cordova.js
+++ b/cordova.js
@@ -17,7 +17,7 @@
     under the License.
 */
 var cordova_events = require('./src/events');
-var addModuleProperty = require('./src/util').addModuleProperty;
+var cordova_util = require('./src/util');
 
 var off = function() {
     cordova_events.removeListener.apply(cordova_events, arguments);
@@ -41,6 +41,11 @@ exports = module.exports = {
     raw: {}
 };
 
+exports.findProjectRoot = function(opt_startDir) {
+    return cordova_util.isCordova(opt_startDir);
+}
+
+var addModuleProperty = cordova_util.addModuleProperty;
 addModuleProperty(module, 'prepare', './src/prepare', true);
 addModuleProperty(module, 'build', './src/build', true);
 addModuleProperty(module, 'help', './src/help');


Mime
View raw message