mirror of https://github.com/status-im/web3.js.git
fixed meteor package
This commit is contained in:
parent
1a8032c72c
commit
a0709f3df1
|
@ -21,7 +21,7 @@ You need to run a local ethrereum node to use this library.
|
|||
|
||||
### Meteor.js
|
||||
|
||||
$ meteor add ethereum:js
|
||||
$ meteor add ethereum:web3
|
||||
|
||||
### As Browser module
|
||||
Bower
|
||||
|
@ -36,11 +36,7 @@ Component
|
|||
* Include [bignumber.js](https://github.com/MikeMcl/bignumber.js/) (not required for the meteor package)
|
||||
|
||||
## Usage
|
||||
You can require the library (not required for the meteor package):
|
||||
|
||||
var web3 = require('ethereum.js');
|
||||
|
||||
Or use it directly from global namespace:
|
||||
Use the `web3` object directly from global namespace:
|
||||
|
||||
console.log(web3); // {eth: .., shh: ...} // it's here!
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* jshint ignore:start */
|
||||
|
||||
if(typeof web3 === 'undefined') {
|
||||
web3 = require('ethereum.js');
|
||||
web3 = require('web3');
|
||||
BigNumber = require('bignumber.js');
|
||||
}
|
||||
|
||||
|
|
|
@ -14,10 +14,9 @@ Package.onUse(function(api) {
|
|||
|
||||
// api.use('3stack:bignumber@2.0.0', 'client');
|
||||
|
||||
// api.export('BigNumber', 'client');
|
||||
api.export(['web3', 'BigNumber'], 'client');
|
||||
|
||||
api.addFiles('dist/ethereum.js', 'client');
|
||||
api.addFiles('dist/web3.js', 'client');
|
||||
api.addFiles('package-init.js', 'client');
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue