You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by fi...@apache.org on 2013/06/19 22:20:43 UTC
[1/3] git commit: testing out plugin loader approach by jesse
Updated Branches:
refs/heads/master a9af62bd2 -> 70c9b5c38
testing out plugin loader approach by jesse
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugman/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugman/commit/ee5cc777
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugman/tree/ee5cc777
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugman/diff/ee5cc777
Branch: refs/heads/master
Commit: ee5cc7777ea99c2e28b4d7a10fbd7bb1263f9705
Parents: a9af62b
Author: Fil Maj <ma...@gmail.com>
Authored: Fri May 17 17:35:04 2013 -0700
Committer: Fil Maj <ma...@gmail.com>
Committed: Wed Jun 19 13:16:47 2013 -0700
----------------------------------------------------------------------
src/prepare.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/ee5cc777/src/prepare.js
----------------------------------------------------------------------
diff --git a/src/prepare.js b/src/prepare.js
index 7f3df91..800c8e1 100644
--- a/src/prepare.js
+++ b/src/prepare.js
@@ -120,6 +120,9 @@ module.exports = function handlePrepare(project_dir, platform, plugins_dir) {
});
// Write out moduleObjects as JSON to cordova_plugins.json
- fs.writeFileSync(path.join(wwwDir, 'cordova_plugins.json'), JSON.stringify(moduleObjects), 'utf-8');
+ var final_contents = "cordova.define('cordova/plugin_list', function(require, exports, module) {\n";
+ final_contents += 'module.exports = ' + JSON.stringify(moduleObjects) + '\n';
+ final_contents += '});';
+ fs.writeFileSync(path.join(wwwDir, 'cordova_plugins.js'), final_contents, 'utf-8');
};
[3/3] git commit: 0.7.12
Posted by fi...@apache.org.
0.7.12
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugman/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugman/commit/70c9b5c3
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugman/tree/70c9b5c3
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugman/diff/70c9b5c3
Branch: refs/heads/master
Commit: 70c9b5c389f68f5f3612d4faa0fbc9987f36c86e
Parents: e411b46
Author: Fil Maj <ma...@gmail.com>
Authored: Wed Jun 19 13:20:35 2013 -0700
Committer: Fil Maj <ma...@gmail.com>
Committed: Wed Jun 19 13:20:35 2013 -0700
----------------------------------------------------------------------
package.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/70c9b5c3/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index 25de20f..cdafc2c 100644
--- a/package.json
+++ b/package.json
@@ -2,7 +2,7 @@
"author": "Andrew Lunny <al...@gmail.com>",
"name": "plugman",
"description": "install/uninstall Cordova plugins",
- "version": "0.7.11",
+ "version": "0.7.12",
"repository": {
"type": "git",
"url": "git://git-wip-us.apache.org/repos/asf/cordova-plugman.git"
[2/3] git commit: Make sure to write out both cordova_plugins.json
and cordova_plugins.js
Posted by fi...@apache.org.
Make sure to write out both cordova_plugins.json and cordova_plugins.js
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugman/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugman/commit/e411b46d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugman/tree/e411b46d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugman/diff/e411b46d
Branch: refs/heads/master
Commit: e411b46dad371fb2ac72f55b74ce6b019253176b
Parents: ee5cc77
Author: Fil Maj <ma...@gmail.com>
Authored: Wed Jun 19 13:20:11 2013 -0700
Committer: Fil Maj <ma...@gmail.com>
Committed: Wed Jun 19 13:20:11 2013 -0700
----------------------------------------------------------------------
src/prepare.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/e411b46d/src/prepare.js
----------------------------------------------------------------------
diff --git a/src/prepare.js b/src/prepare.js
index 800c8e1..e4ad090 100644
--- a/src/prepare.js
+++ b/src/prepare.js
@@ -120,9 +120,11 @@ module.exports = function handlePrepare(project_dir, platform, plugins_dir) {
});
// Write out moduleObjects as JSON to cordova_plugins.json
+ fs.writeFileSync(path.join(wwwDir, 'cordova_plugins.json'), JSON.stringify(moduleObjects), 'utf-8');
+ // Write out moduleObjects as JSON wrapped in a cordova module to cordova_plugins.js
+ // This is to support Windows Phone platforms that have trouble with XHR during load
var final_contents = "cordova.define('cordova/plugin_list', function(require, exports, module) {\n";
final_contents += 'module.exports = ' + JSON.stringify(moduleObjects) + '\n';
final_contents += '});';
fs.writeFileSync(path.join(wwwDir, 'cordova_plugins.js'), final_contents, 'utf-8');
-
};