|
|
@ -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; |
|
|
|