add package-init.js

This commit is contained in:
Fabian Vogelsteller 2015-02-27 10:29:55 +01:00
parent a69c04d319
commit c03a949c9a
3 changed files with 9 additions and 2 deletions

View File

@ -1,4 +1,4 @@
3stack:bignumber@2.0.0 3stack:bignumber@2.0.0
ethereum:js@0.0.15-rc1 ethereum:js@0.0.15-rc4
meteor@1.1.4 meteor@1.1.4
underscore@1.0.2 underscore@1.0.2

3
package-init.js Normal file
View File

@ -0,0 +1,3 @@
if(typeof web3 === 'undefined') {
web3 = require('web3');
}

View File

@ -1,6 +1,6 @@
Package.describe({ Package.describe({
name: 'ethereum:js', name: 'ethereum:js',
version: '0.0.15-rc1', version: '0.0.15-rc4',
summary: 'Ethereum JavaScript API, middleware to talk to a ethreum node over RPC', summary: 'Ethereum JavaScript API, middleware to talk to a ethreum node over RPC',
git: 'https://github.com/ethereum/ethereum.js', git: 'https://github.com/ethereum/ethereum.js',
// By default, Meteor will default to using README.md for documentation. // By default, Meteor will default to using README.md for documentation.
@ -13,7 +13,11 @@ Package.onUse(function(api) {
api.use('3stack:bignumber@2.0.0', 'client'); api.use('3stack:bignumber@2.0.0', 'client');
api.export('BigNumber', 'client');
api.export('web3', 'client');
api.addFiles('dist/ethereum.js', 'client'); api.addFiles('dist/ethereum.js', 'client');
api.addFiles('package-init.js', 'client');
}); });
// Package.onTest(function(api) { // Package.onTest(function(api) {