Transaction, Connection, Peer, Block, ScriptInterpreter working in the browser!
This commit is contained in:
parent
9bb331955f
commit
8ab1c3feae
|
@ -15,7 +15,10 @@ module.exports = function(grunt) {
|
|||
dest: 'browser/bundle.js',
|
||||
options: {
|
||||
debug: true,
|
||||
alias: ['browserify-bignum/bignumber.js:bignum'],
|
||||
alias: [
|
||||
'browserify-bignum/bignumber.js:bignum',
|
||||
'browserify-buffertools/buffertools.js:buffertools'
|
||||
],
|
||||
standalone: 'bitcore',
|
||||
}
|
||||
},
|
||||
|
|
|
@ -46,6 +46,7 @@ Bitcore is still under heavy development and not quite ready for "drop-in" produ
|
|||
#Contributing
|
||||
Bitcore needs some developer love. Please send pull requests for bug fixes, code optimization, and ideas for improvement.
|
||||
|
||||
#Browser support
|
||||
Work to enable Bitcore for use in the browser is ongoing. To build bitcore for the browser:
|
||||
```
|
||||
npm install -g grunt-cli
|
||||
|
|
|
@ -10,6 +10,7 @@ module.exports.VersionedData = require('./util/VersionedData');
|
|||
module.exports.Address = require('./Address');
|
||||
module.exports.config = require('./config');
|
||||
module.exports.log = require('./util/log');
|
||||
module.exports.networks = require('./networks');
|
||||
module.exports.Opcode = require('./Opcode');
|
||||
module.exports.util = require('./util/util');
|
||||
module.exports.Script = require('./Script');
|
||||
|
@ -19,7 +20,6 @@ module.exports.Peer = require('./Peer');
|
|||
module.exports.Block = require('./Block');
|
||||
module.exports.Connection = require('./Connection');
|
||||
module.exports.ScriptInterpreter = require('./ScriptInterpreter');
|
||||
module.exports.networks = require('./networks');
|
||||
|
||||
|
||||
if (typeof process.versions === 'undefined') {
|
||||
|
|
|
@ -40,7 +40,8 @@
|
|||
"buffers": "=0.1.1",
|
||||
"buffertools": "~2.0.1",
|
||||
"mocha": ">=1.15.1",
|
||||
"browserify-bignum": "git://github.com/maraoz/browserify-bignum.git"
|
||||
"browserify-bignum": "git://github.com/maraoz/browserify-bignum.git",
|
||||
"browserify-buffertools": "~1.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"grunt-contrib-watch": "~0.5.3",
|
||||
|
|
|
@ -22,6 +22,11 @@
|
|||
<script src="test.Address.js"></script>
|
||||
<script src="test.Opcode.js"></script>
|
||||
<script src="test.Script.js"></script>
|
||||
<script src="test.Transaction.js"></script>
|
||||
<script src="test.Peer.js"></script>
|
||||
<script src="test.Block.js"></script>
|
||||
<script src="test.Connection.js"></script>
|
||||
<script src="test.ScriptInterpreter.js"></script>
|
||||
<script src="test.misc.js"></script>
|
||||
<script>
|
||||
mocha.run();
|
||||
|
|
Loading…
Reference in New Issue