cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject cordova-lib git commit: CB-8153 fixed jshint errors, moved some code around
Date Fri, 09 Jan 2015 22:37:42 GMT
Repository: cordova-lib
Updated Branches:
  refs/heads/master 18c9a5209 -> 5094c8095


CB-8153 fixed jshint errors, moved some code around


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

Branch: refs/heads/master
Commit: 5094c80952d60d1259ab8e0d8dd6801d5e291e14
Parents: 18c9a52
Author: Steve Gill <stevengill97@gmail.com>
Authored: Fri Jan 9 14:36:43 2015 -0800
Committer: Steve Gill <stevengill97@gmail.com>
Committed: Fri Jan 9 14:36:55 2015 -0800

----------------------------------------------------------------------
 cordova-lib/src/plugman/prepare-browserify.js | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/5094c809/cordova-lib/src/plugman/prepare-browserify.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/plugman/prepare-browserify.js b/cordova-lib/src/plugman/prepare-browserify.js
index cc41873..cc74b5d 100644
--- a/cordova-lib/src/plugman/prepare-browserify.js
+++ b/cordova-lib/src/plugman/prepare-browserify.js
@@ -182,14 +182,6 @@ module.exports = function handlePrepare(project_dir, platform, plugins_dir,
www_
             // pluginMetadata is a mapping from plugin IDs to versions.
             pluginMetadata[plugin_id] = xml.getroot().attrib.version;
 
-            var cordova_plugins = "module.exports.metadata = \n";
-            cordova_plugins += JSON.stringify(pluginMetadata, null, '     ') + "\n";
-            cordova_plugins += "modules.exports = modules.exports.metadata;";
-            
-            events.emit('verbose', 'Writing out cordova_plugins.js...');
-            fs.writeFileSync(path.join(wwwDir, 'cordova_plugins.js'), cordova_plugins, 'utf8');
-            var plugin_id = xml.getroot().attrib.id;
-
             // add the plugins dir to the platform's www.
             var platformPluginsDir = path.join(wwwDir, 'plugins');
             // XXX this should not be here if there are no js-module. It leaves an empty
plugins/ directory
@@ -249,6 +241,13 @@ module.exports = function handlePrepare(project_dir, platform, plugins_dir,
www_
             });
         });
 
+        var cordova_plugins = 'module.exports.metadata = \n';
+        cordova_plugins += JSON.stringify(pluginMetadata, null, '     ') + '\n';
+        cordova_plugins += 'modules.exports = modules.exports.metadata;';
+            
+        events.emit('verbose', 'Writing out cordova_plugins.js...');
+        fs.writeFileSync(path.join(wwwDir, 'cordova_plugins.js'), cordova_plugins, 'utf8');
+
         libraryRelease.transform(requireTr.transform);
 
         scripts.forEach(function(script) {


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


Mime
View raw message