fixed meteor package

This commit is contained in:
Fabian Vogelsteller 2015-04-13 12:15:45 +02:00
parent 1a8032c72c
commit a0709f3df1
3 changed files with 4 additions and 9 deletions

View File

@ -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!

View File

@ -1,7 +1,7 @@
/* jshint ignore:start */
if(typeof web3 === 'undefined') {
web3 = require('ethereum.js');
web3 = require('web3');
BigNumber = require('bignumber.js');
}

View File

@ -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');
});