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:26 UTC
[41/45] js commit: fixing weird outputstream problem
fixing weird outputstream problem
Project: http://git-wip-us.apache.org/repos/asf/cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-js/commit/d1cd6ecf
Tree: http://git-wip-us.apache.org/repos/asf/cordova-js/tree/d1cd6ecf
Diff: http://git-wip-us.apache.org/repos/asf/cordova-js/diff/d1cd6ecf
Branch: refs/heads/master
Commit: d1cd6ecffd571801ddee2307f6baf7e1c6199b60
Parents: ec5e490
Author: Anis Kadri <an...@apache.org>
Authored: Wed Mar 26 17:25:58 2014 +0100
Committer: Anis Kadri <an...@apache.org>
Committed: Thu Mar 27 15:20:22 2014 +0100
----------------------------------------------------------------------
tasks/lib/packager-browserify.js | 28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-js/blob/d1cd6ecf/tasks/lib/packager-browserify.js
----------------------------------------------------------------------
diff --git a/tasks/lib/packager-browserify.js b/tasks/lib/packager-browserify.js
index ecc3f5f..3e718c6 100644
--- a/tasks/lib/packager-browserify.js
+++ b/tasks/lib/packager-browserify.js
@@ -32,18 +32,18 @@ module.exports = function generate(platform, useWindowsLineEndings, done) {
var time = new Date().valueOf();
var libraryRelease = bundle(platform, false, commitId);
- // if we are using windows line endings, we will also add the BOM
+ // if we are using windows line endings, we will also add the BOM
// if(useWindowsLineEndings) {
// libraryRelease = "\ufeff" + libraryRelease.split(/\r?\n/).join("\r\n");
// }
- var libraryDebug = bundle(platform, true, commitId);
+ // var libraryDebug = bundle(platform, true, commitId);
if (!fs.existsSync('pkg')) {
fs.mkdirSync('pkg');
}
- if(!fs.existsSync('pkg/debug')) {
- fs.mkdirSync('pkg/debug');
- }
+ // if(!fs.existsSync('pkg/debug')) {
+ // fs.mkdirSync('pkg/debug');
+ // }
outReleaseFile = path.join('pkg', 'cordova.' + platform + '.js');
outReleaseFileStream = fs.createWriteStream(outReleaseFile);
@@ -55,20 +55,20 @@ module.exports = function generate(platform, useWindowsLineEndings, done) {
releaseBundle.pipe(outReleaseFileStream);
- releaseBundle.on('end', function() {
+ outReleaseFileStream.on('finish', function() {
var newtime = new Date().valueOf() - time;
console.log('generated cordova.' + platform + '.js @ ' + commitId + ' in ' + newtime + 'ms');
done();
});
- outDebugFile = path.join('pkg', 'debug', 'cordova.' + platform + '-debug.js');
- outDebugFileStream = fs.createWriteStream(outDebugFile);
- debugBundle = libraryDebug.bundle();
- debugBundle.pipe(outDebugFileStream);
+ // outDebugFile = path.join('pkg', 'debug', 'cordova.' + platform + '-debug.js');
+ // outDebugFileStream = fs.createWriteStream(outDebugFile);
+ // debugBundle = libraryDebug.bundle();
+ // debugBundle.pipe(outDebugFileStream);
- outDebugFileStream.on('end', function() {
- var newtime = new Date().valueOf() - time;
- console.log('generated cordova.' + platform + '-debug.js @ ' + commitId + ' in ' + newtime + 'ms');
- });
+ // outDebugFileStream.on('end', function() {
+ // var newtime = new Date().valueOf() - time;
+ // console.log('generated cordova.' + platform + '-debug.js @ ' + commitId + ' in ' + newtime + 'ms');
+ // });
});
}