Skip to content
Permalink
Browse files
remove old debug build steps
  • Loading branch information
purplecabbage committed Jul 14, 2015
1 parent a83e94b commit 77c1d9b72c28bec78dcedcd0636be3aa995794a5
Showing 2 changed files with 1 addition and 20 deletions.
@@ -40,9 +40,6 @@ module.exports = function generate(platform, useWindowsLineEndings, platformVers
if (!fs.existsSync('pkg')) {
fs.mkdirSync('pkg');
}
// if(!fs.existsSync('pkg/debug')) {
// fs.mkdirSync('pkg/debug');
// }

outReleaseFile = path.join('pkg', 'cordova.' + platform + '.js');
outReleaseFileStream = fs.createWriteStream(outReleaseFile);
@@ -59,15 +56,5 @@ module.exports = function generate(platform, useWindowsLineEndings, platformVers
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);

// outDebugFileStream.on('end', function() {
// var newtime = new Date().valueOf() - time;
// console.log('generated cordova.' + platform + '-debug.js @ ' + commitId + ' in ' + newtime + 'ms');
// });
});
}
@@ -32,21 +32,15 @@ module.exports = function generate(platform, useWindowsLineEndings, platformVers
if(useWindowsLineEndings) {
libraryRelease = "\ufeff" + libraryRelease.split(/\r?\n/).join("\r\n");
}
var libraryDebug = bundle(platform, true, commitId, platformVersion, platformPath);


time = new Date().valueOf() - time;
if (!fs.existsSync('pkg')) {
fs.mkdirSync('pkg');
}
if(!fs.existsSync('pkg/debug')) {
fs.mkdirSync('pkg/debug');
}

outFile = path.join('pkg', 'cordova.' + platform + '.js');
fs.writeFileSync(outFile, libraryRelease, 'utf8');

outFile = path.join('pkg', 'debug', 'cordova.' + platform + '-debug.js');
fs.writeFileSync(outFile, libraryDebug, 'utf8');

console.log('generated cordova.' + platform + '.js @ ' + commitId + ' in ' + time + 'ms');
callback();

0 comments on commit 77c1d9b

Please sign in to comment.