cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [09/12] git commit: windows8 is just like wp7 + wp8
Date Mon, 29 Jul 2013 23:36:29 GMT
windows8 is just like wp7 + wp8


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

Branch: refs/heads/master
Commit: 4db9a96e09bc120387f3ac90ccc1719e97846bb5
Parents: 29bff8b
Author: purplecabbage <purplecabbage@gmail.com>
Authored: Mon Jul 29 14:15:46 2013 -0700
Committer: purplecabbage <purplecabbage@gmail.com>
Committed: Mon Jul 29 16:34:07 2013 -0700

----------------------------------------------------------------------
 src/prepare.js | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4db9a96e/src/prepare.js
----------------------------------------------------------------------
diff --git a/src/prepare.js b/src/prepare.js
index a59a55d..aed3f48 100644
--- a/src/prepare.js
+++ b/src/prepare.js
@@ -23,7 +23,7 @@ var platform_modules = require('./platforms'),
     xml_helpers     = require('./util/xml-helpers'),
     wp7             = require('./platforms/wp7'),
     wp8             = require('./platforms/wp8'),
-    windows8             = require('./platforms/windows8'),
+    windows8        = require('./platforms/windows8'),
     fs              = require('fs'),
     shell           = require('shelljs'),
     util            = require('util'),
@@ -195,12 +195,9 @@ module.exports = function handlePrepare(project_dir, platform, plugins_dir)
{
     final_contents += 'module.exports = ' + JSON.stringify(moduleObjects,null,'    ') + '\n});';
     require('../plugman').emit('log', 'Writing out cordova_plugins.js...');
     fs.writeFileSync(path.join(wwwDir, 'cordova_plugins.js'), final_contents, 'utf-8');
-    if(platform == 'wp7' || platform == 'wp8') {
-        wp_csproj.addSourceFile (path.join('www', 'cordova_plugins.js'));
-        wp_csproj.write();
-    }
-    else if(platform == "window8") {
-        wp_csproj.addSourceFile (path.join('www', 'cordova_plugins.js'));
+
+    if(platform == 'wp7' || platform == 'wp8' || platform == "windows8") {
+        wp_csproj.addSourceFile(path.join('www', 'cordova_plugins.js'));
         wp_csproj.write();
     }
 };


Mime
View raw message