You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by an...@apache.org on 2014/04/24 23:11:14 UTC

[29/45] js commit: adding other platforms

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/db8b15d1
Tree: http://git-wip-us.apache.org/repos/asf/cordova-js/tree/db8b15d1
Diff: http://git-wip-us.apache.org/repos/asf/cordova-js/diff/db8b15d1

Branch: refs/heads/master
Commit: db8b15d1ffd9b9a96bc6f4f671aa447cfa2c3479
Parents: 4a9fe17
Author: Anis Kadri <an...@apache.org>
Authored: Wed Feb 5 18:21:38 2014 -0800
Committer: Anis Kadri <an...@apache.org>
Committed: Thu Mar 27 15:20:21 2014 +0100

----------------------------------------------------------------------
 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/db8b15d1/Gruntfile.js
----------------------------------------------------------------------
diff --git a/Gruntfile.js b/Gruntfile.js
index ffd4064..5182572 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/db8b15d1/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;