cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject js commit: adding other platforms
Date Thu, 06 Feb 2014 02:21:56 GMT
Updated Branches:
  refs/heads/browserify 74c53effa -> 15b0952ea


adding other platforms


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

Branch: refs/heads/browserify
Commit: 15b0952ea66f0776f8fc0110a5598d6469da9e9a
Parents: 74c53ef
Author: Anis Kadri <anis@apache.org>
Authored: Wed Feb 5 18:21:38 2014 -0800
Committer: Anis Kadri <anis@apache.org>
Committed: Wed Feb 5 18:21:38 2014 -0800

----------------------------------------------------------------------
 Gruntfile.js                     | 10 +++++++++-
 tasks/lib/packager-browserify.js |  6 +++---
 2 files changed, 12 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-js/blob/15b0952e/Gruntfile.js
----------------------------------------------------------------------
diff --git a/Gruntfile.js b/Gruntfile.js
index 3da4d43..69af034 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -36,7 +36,15 @@ module.exports = function(grunt) {
         "compile-browserify": {
             "amazon-fireos": {},
             "android": {},
-            "ios": {}
+            "blackberry10": {},
+            "ios": {},
+            "osx": {},
+            //"test": {},
+            "windows8": { useWindowsLineEndings: true },
+            "windowsphone": { useWindowsLineEndings: true },
+            "firefoxos": {},
+            "ubuntu": {},
+            "browser": {}
         },
         clean: ['pkg'],
         jshint: {

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/15b0952e/tasks/lib/packager-browserify.js
----------------------------------------------------------------------
diff --git a/tasks/lib/packager-browserify.js b/tasks/lib/packager-browserify.js
index 299bf89..e3407cf 100644
--- a/tasks/lib/packager-browserify.js
+++ b/tasks/lib/packager-browserify.js
@@ -29,9 +29,9 @@ module.exports = function generate(platform, useWindowsLineEndings, callback)
{
 
         var libraryRelease = bundle(platform, false, commitId);
         // if we are using windows line endings, we will also add the BOM
-        if(useWindowsLineEndings) {
-            libraryRelease = "\ufeff" + libraryRelease.split(/\r?\n/).join("\r\n");
-        }
+       // if(useWindowsLineEndings) {
+       //     libraryRelease = "\ufeff" + libraryRelease.split(/\r?\n/).join("\r\n");
+       // }
         //var libraryDebug   = bundle(platform, true, commitId);
 
         time = new Date().valueOf() - time;


Mime
View raw message