Skip to content

Commit 778936b

Browse files
committed
package: adds compile-bundle build target
1 parent e3d05c6 commit 778936b

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

bundle.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
var bitcoin = require('./src/index')
2+
3+
var exports = {
4+
BigInteger: require('bigi'),
5+
ecurve: require('ecurve'),
6+
secureRandom: require('secure-random')
7+
}
8+
9+
for (var key in bitcoin) {
10+
exports[key] = bitcoin[key]
11+
}
12+
13+
module.exports = exports

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
},
6262
"scripts": {
6363
"compile": "browserify ./src/index.js -s bitcoin | uglifyjs > bitcoinjs-min.js",
64+
"compile-bundle": "browserify ./bundle.js -s bitcoin | uglifyjs > bitcoinjs-bundle-min.js",
6465
"coverage": "istanbul cover _mocha -- test/*.js",
6566
"coveralls": "npm run-script coverage && coveralls < coverage/lcov.info",
6667
"integration": "mocha --reporter list test/integration/*.js",

0 commit comments

Comments
 (0)