Merge pull request #139 from maraoz/feature/configurable-bundle
fix postinstall script
This commit is contained in:
commit
25c95cdb47
|
@ -16,7 +16,7 @@ module.exports = function(grunt) {
|
|||
stdout: true,
|
||||
stderr: true
|
||||
},
|
||||
command: 'node ./browser/browserify.js -a',
|
||||
command: 'node ./browser/build.js -a',
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
|
|
@ -262,7 +262,7 @@ To build bitcore full bundle for the browser:
|
|||
(this is automatically executed after you run `npm install`)
|
||||
|
||||
```
|
||||
node browser/browserify.js -a
|
||||
node browser/build.js -a
|
||||
```
|
||||
This will generate a `browser/bundle.js` file which you can include
|
||||
in your HTML to use bitcore in the browser.
|
||||
|
@ -294,7 +294,7 @@ To generate a customized bitcore bundle, you can specify
|
|||
which submodules you want to include in it with the -s option:
|
||||
|
||||
```
|
||||
node browser/browserify.js -s Transaction,Address
|
||||
node browser/build.js -s Transaction,Address
|
||||
```
|
||||
This will generate a `browser/bundle.js` containing only the Transaction
|
||||
and Address class, with all their dependencies.
|
||||
|
|
16
package.json
16
package.json
|
@ -43,7 +43,7 @@
|
|||
},
|
||||
"scripts": {
|
||||
"test": "mocha test -R spec",
|
||||
"postinstall": "node ./browser/browserify.js -a"
|
||||
"postinstall": "node browser/build.js -a"
|
||||
},
|
||||
"dependencies": {
|
||||
"soop": "git://github.com/bitpay/soop.git",
|
||||
|
@ -54,22 +54,26 @@
|
|||
"binary": "=0.3.0",
|
||||
"step": "=0.0.4",
|
||||
"buffers": "=0.1.1",
|
||||
"buffertools": "~2.0.1"
|
||||
"buffertools": "~2.0.1",
|
||||
"browserify": "~3.32.1",
|
||||
"browser-pack": "~2.0.1",
|
||||
"commander": "~2.1.0",
|
||||
"browserify-bignum": "git://github.com/maraoz/browserify-bignum.git",
|
||||
"browserify-buffertools": "~1.0.2",
|
||||
"brfs": "~1.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"grunt-contrib-watch": "~0.5.3",
|
||||
"grunt-mocha-test": "~0.8.2",
|
||||
"grunt-shell": "~0.6.4",
|
||||
"grunt-browserify": "~2.0.0",
|
||||
"browser-pack": "*",
|
||||
"grunt-markdown": "~0.5.0",
|
||||
"mocha": ">=1.15.1",
|
||||
"browserify-bignum": "git://github.com/maraoz/browserify-bignum.git",
|
||||
"browserify-buffertools": "~1.0.2",
|
||||
"chai": "~1.9.0",
|
||||
"brfs": "~1.0.0",
|
||||
"async": "~0.2.10",
|
||||
"commander": "~2.1.0"
|
||||
"commander": "~2.1.0",
|
||||
"browser-pack": "~2.0.1"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue