Browse Source

make stdout output possible

patch-2
Manuel Araoz 11 years ago
parent
commit
435604cf49
  1. 3
      browser/build.js

3
browser/build.js

@ -138,13 +138,14 @@ if (require.main === module) {
.version('0.0.1')
.option('-a, --includeall', 'Include all submodules.')
.option('-d, --dontminify', 'Don\'t minify the code.')
.option('-o, --stdout', 'Specify output as stdout')
.option('-s, --submodules <items>', 'Include the listed comma-separated submodules.', list)
.parse(process.argv);
var bitcoreBundle = createBitcore(program);
var testBundle = createTestData(program);
testBundle.pipe(fs.createWriteStream('browser/testdata.js'));
bitcoreBundle.pipe(fs.createWriteStream('browser/bundle.js'));
bitcoreBundle.pipe(program.stdout ? process.stdout : fs.createWriteStream('browser/bundle.js'));
}
module.exports.createBitcore = createBitcore;

Loading…
Cancel
Save