Permalink
Browse files

packager will use windows line endings if param set

  • Loading branch information...
1 parent 0de682e commit 70ecba7ca2ecbe1b1814f6a8bd95212115251ae0 @purplecabbage purplecabbage committed Jan 9, 2013
Showing with 6 additions and 3 deletions.
  1. +2 −2 Jakefile
  2. +4 −1 build/packager.js
View
@@ -87,10 +87,10 @@ task('build', ['clean', 'hint', 'update-version'], function () {
console.log("building " + commitId);
- packager.generate("windows8",commitId);
+ packager.generate("windows8",commitId,true);
packager.generate("blackberry",commitId);
packager.generate("ios",commitId);
- packager.generate("windowsphone",commitId);
+ packager.generate("windowsphone",commitId,true);
packager.generate("android",commitId);
packager.generate("bada",commitId);
packager.generate("tizen",commitId);
View
@@ -24,11 +24,14 @@ var path = require('path')
var packager = module.exports
//------------------------------------------------------------------------------
-packager.generate = function(platform, commitId) {
+packager.generate = function(platform, commitId, useWindowsLineEndings) {
var outFile;
var time = new Date().valueOf();
var libraryRelease = packager.bundle(platform, false, commitId);
+ if(useWindowsLineEndings) {
+ libraryRelease = libraryRelease.split(/\r?\n/).join("\r\n");
+ }
var libraryDebug = packager.bundle(platform, true, commitId);
time = new Date().valueOf() - time;

0 comments on commit 70ecba7

Please sign in to comment.