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