You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2017/06/16 00:20:00 UTC

[06/16] cordova-lib git commit: move platform module exports to the top, so clear what is exported.

move platform module exports to the top, so clear what is exported.


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

Branch: refs/heads/master
Commit: f16ad7982d6474251edc7ca55a1f6fec7d9e6707
Parents: 1a8fa41
Author: filmaj <ma...@gmail.com>
Authored: Fri Jun 9 18:25:46 2017 -0500
Committer: filmaj <ma...@gmail.com>
Committed: Mon Jun 12 15:26:11 2017 -0500

----------------------------------------------------------------------
 src/cordova/platform.js | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/f16ad798/src/cordova/platform.js
----------------------------------------------------------------------
diff --git a/src/cordova/platform.js b/src/cordova/platform.js
index 3545b29..0b8a8c1 100644
--- a/src/cordova/platform.js
+++ b/src/cordova/platform.js
@@ -38,6 +38,15 @@ var config            = require('./config'),
     npmUninstall      = require('cordova-fetch').uninstall,
     platformMetadata  = require('./platform_metadata');
 
+module.exports = platform;
+module.exports.add = add;
+module.exports.remove = remove;
+module.exports.update = update;
+module.exports.check = check;
+module.exports.list = list;
+module.exports.save = save;
+module.exports.getPlatformDetailsFromDir = getPlatformDetailsFromDir;
+
 // Expose the platform parsers on top of this command
 for (var p in platforms) {
     module.exports[p] = platforms[p];
@@ -647,7 +656,6 @@ function addDeprecatedInformationToPlatforms(platformsList){
  * @param {Object} opts
  * @returns {Promise}
  */
-module.exports = platform;
 function platform(command, targets, opts) {
     // CB-10519 wrap function code into promise so throwing error
     // would result in promise rejection instead of uncaught exception
@@ -760,10 +768,3 @@ function removePlatformPluginsJson(projectRoot, target) {
     shell.rm('-f', plugins_json);
 }
 
-module.exports.add = add;
-module.exports.remove = remove;
-module.exports.update = update;
-module.exports.check = check;
-module.exports.list = list;
-module.exports.save = save;
-module.exports.getPlatformDetailsFromDir = getPlatformDetailsFromDir;


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