Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7A19C11ED2 for ; Thu, 24 Apr 2014 21:11:38 +0000 (UTC) Received: (qmail 95118 invoked by uid 500); 24 Apr 2014 21:11:08 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 94903 invoked by uid 500); 24 Apr 2014 21:11:00 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 94302 invoked by uid 99); 24 Apr 2014 21:10:49 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Apr 2014 21:10:49 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 273FE991EBD; Thu, 24 Apr 2014 21:10:47 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: anis@apache.org To: commits@cordova.apache.org Date: Thu, 24 Apr 2014 21:11:26 -0000 Message-Id: <78c9af1ade6941209af016f5ab929c3f@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [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 Authored: Wed Mar 26 17:25:58 2014 +0100 Committer: Anis Kadri 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'); + // }); }); }