diff --git a/Gruntfile.js b/Gruntfile.js index 8bf4826..76f758c 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -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: { diff --git a/README.md b/README.md index ca5c591..33f9750 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/browser/browserify.js b/browser/build.js similarity index 100% rename from browser/browserify.js rename to browser/build.js diff --git a/package.json b/package.json index 382f3d6..22a7f3b 100644 --- a/package.json +++ b/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" }