package.json and Makefile.
This commit is contained in:
parent
7a66a2717e
commit
e2759707f2
12
Makefile
Normal file
12
Makefile
Normal file
@ -0,0 +1,12 @@
|
||||
all:
|
||||
@browserify lib/bcoin.js -o bcoin.browser.js
|
||||
@uglifyjs --comments '/\*[^\0]+?Copyright[^\0]+?\*/' -o bcoin.min.js bcoin.browser.js
|
||||
|
||||
clean:
|
||||
@rm bcoin.browser.js
|
||||
@rm bcoin.min.js
|
||||
|
||||
test:
|
||||
@npm test
|
||||
|
||||
.PHONY: all clean test
|
||||
@ -5,10 +5,10 @@
|
||||
*/
|
||||
|
||||
var bcoin = exports;
|
||||
var inherits = require('inherits');
|
||||
var elliptic = require('elliptic');
|
||||
var bn = require('bn.js');
|
||||
var hash = require('hash.js');
|
||||
var async = require('async');
|
||||
|
||||
bcoin.isBrowser =
|
||||
(typeof process !== 'undefined' && process.browser)
|
||||
@ -27,10 +27,10 @@ if (!bcoin.isBrowser) {
|
||||
bcoin.cp = require('child_' + 'process');
|
||||
}
|
||||
|
||||
bcoin.inherits = inherits;
|
||||
bcoin.elliptic = elliptic;
|
||||
bcoin.bn = bn;
|
||||
bcoin.hash = hash;
|
||||
bcoin.async = async;
|
||||
|
||||
bcoin.ecdsa = elliptic.ec('secp256k1');
|
||||
|
||||
|
||||
@ -4,7 +4,6 @@
|
||||
* https://github.com/indutny/bcoin
|
||||
*/
|
||||
|
||||
var async = require('async');
|
||||
var inherits = require('inherits');
|
||||
var EventEmitter = require('events').EventEmitter;
|
||||
|
||||
|
||||
27
package.json
27
package.json
@ -1,18 +1,18 @@
|
||||
{
|
||||
"name": "bcoin",
|
||||
"version": "0.15.0",
|
||||
"version": "1.0.0-alpha",
|
||||
"description": "Bitcoin bike-shed",
|
||||
"main": "lib/bcoin.js",
|
||||
"main": "./lib/bcoin.js",
|
||||
"bin": "./bin/node",
|
||||
"preferGlobal": false,
|
||||
"scripts": {
|
||||
"test": "mocha --reporter spec test/*-test.js"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git@github.com:indutny/bcoin"
|
||||
},
|
||||
"repository": "git://github.com/indutny/bcoin.git",
|
||||
"keywords": [
|
||||
"bitcoin",
|
||||
"bcoin"
|
||||
"bcoin",
|
||||
"wallet"
|
||||
],
|
||||
"author": "Fedor Indutny <fedor@indutny.com>",
|
||||
"license": "MIT",
|
||||
@ -20,15 +20,20 @@
|
||||
"url": "https://github.com/indutny/bcoin/issues"
|
||||
},
|
||||
"homepage": "https://github.com/indutny/bcoin",
|
||||
"engines": {
|
||||
"node": ">= 0.8.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"async": "^0.8.0",
|
||||
"bn.js": "4.6.3",
|
||||
"elliptic": "6.0.2",
|
||||
"hash.js": "1.0.3",
|
||||
"inherits": "^2.0.1"
|
||||
"inherits": "2.0.1",
|
||||
"leveldown": "1.4.4",
|
||||
"memdown": "1.1.2",
|
||||
"levelup": "1.3.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"browserify": "^3.44.2",
|
||||
"mocha": "^1.18.2"
|
||||
"browserify": "13.0.0",
|
||||
"mocha": "1.21.5"
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user