cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [15/43] git commit: [CB-4016] only write out cordova_plugins.js.
Date Thu, 11 Jul 2013 21:50:15 GMT
[CB-4016] only write out 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/9c253e1a
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugman/tree/9c253e1a
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugman/diff/9c253e1a

Branch: refs/heads/plugman-registry
Commit: 9c253e1a72156da8fcafc53e31b2852e7fdc805b
Parents: f4ffadc
Author: Fil Maj <maj.fil@gmail.com>
Authored: Tue Jul 9 21:06:02 2013 -0700
Committer: Fil Maj <maj.fil@gmail.com>
Committed: Tue Jul 9 21:06:02 2013 -0700

----------------------------------------------------------------------
 spec/prepare.spec.js | 4 ++--
 src/prepare.js       | 3 ---
 2 files changed, 2 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/9c253e1a/spec/prepare.spec.js
----------------------------------------------------------------------
diff --git a/spec/prepare.spec.js b/spec/prepare.spec.js
index 675444a..89db3b5 100644
--- a/spec/prepare.spec.js
+++ b/spec/prepare.spec.js
@@ -36,9 +36,9 @@ describe('prepare', function() {
             find:find
         });
     });
-    it('should create a cordova_plugins.json file', function() {
+    it('should NOT create a cordova_plugins.json file', function() {
         prepare(temp, 'android', plugins_dir);
-        expect(write).toHaveBeenCalledWith(json, jasmine.any(String), 'utf-8');
+        expect(write).not.toHaveBeenCalledWith(json, jasmine.any(String), 'utf-8');
     });
     it('should create a cordova_plugins.js file', function() {
         prepare(temp, 'android', plugins_dir);

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/9c253e1a/src/prepare.js
----------------------------------------------------------------------
diff --git a/src/prepare.js b/src/prepare.js
index 4904975..f9b755c 100644
--- a/src/prepare.js
+++ b/src/prepare.js
@@ -123,9 +123,6 @@ module.exports = function handlePrepare(project_dir, platform, plugins_dir)
{
         }
     });
 
-    require('../plugman').emit('log', 'Writing out cordova_plugins.json...');
-    // 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";


Mime
View raw message