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 bcoin = exports;
|
||||||
|
var inherits = require('inherits');
|
||||||
var elliptic = require('elliptic');
|
var elliptic = require('elliptic');
|
||||||
var bn = require('bn.js');
|
var bn = require('bn.js');
|
||||||
var hash = require('hash.js');
|
var hash = require('hash.js');
|
||||||
var async = require('async');
|
|
||||||
|
|
||||||
bcoin.isBrowser =
|
bcoin.isBrowser =
|
||||||
(typeof process !== 'undefined' && process.browser)
|
(typeof process !== 'undefined' && process.browser)
|
||||||
@ -27,10 +27,10 @@ if (!bcoin.isBrowser) {
|
|||||||
bcoin.cp = require('child_' + 'process');
|
bcoin.cp = require('child_' + 'process');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bcoin.inherits = inherits;
|
||||||
bcoin.elliptic = elliptic;
|
bcoin.elliptic = elliptic;
|
||||||
bcoin.bn = bn;
|
bcoin.bn = bn;
|
||||||
bcoin.hash = hash;
|
bcoin.hash = hash;
|
||||||
bcoin.async = async;
|
|
||||||
|
|
||||||
bcoin.ecdsa = elliptic.ec('secp256k1');
|
bcoin.ecdsa = elliptic.ec('secp256k1');
|
||||||
|
|
||||||
|
|||||||
@ -4,7 +4,6 @@
|
|||||||
* https://github.com/indutny/bcoin
|
* https://github.com/indutny/bcoin
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var async = require('async');
|
|
||||||
var inherits = require('inherits');
|
var inherits = require('inherits');
|
||||||
var EventEmitter = require('events').EventEmitter;
|
var EventEmitter = require('events').EventEmitter;
|
||||||
|
|
||||||
|
|||||||
27
package.json
27
package.json
@ -1,18 +1,18 @@
|
|||||||
{
|
{
|
||||||
"name": "bcoin",
|
"name": "bcoin",
|
||||||
"version": "0.15.0",
|
"version": "1.0.0-alpha",
|
||||||
"description": "Bitcoin bike-shed",
|
"description": "Bitcoin bike-shed",
|
||||||
"main": "lib/bcoin.js",
|
"main": "./lib/bcoin.js",
|
||||||
|
"bin": "./bin/node",
|
||||||
|
"preferGlobal": false,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "mocha --reporter spec test/*-test.js"
|
"test": "mocha --reporter spec test/*-test.js"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": "git://github.com/indutny/bcoin.git",
|
||||||
"type": "git",
|
|
||||||
"url": "git@github.com:indutny/bcoin"
|
|
||||||
},
|
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"bitcoin",
|
"bitcoin",
|
||||||
"bcoin"
|
"bcoin",
|
||||||
|
"wallet"
|
||||||
],
|
],
|
||||||
"author": "Fedor Indutny <fedor@indutny.com>",
|
"author": "Fedor Indutny <fedor@indutny.com>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@ -20,15 +20,20 @@
|
|||||||
"url": "https://github.com/indutny/bcoin/issues"
|
"url": "https://github.com/indutny/bcoin/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/indutny/bcoin",
|
"homepage": "https://github.com/indutny/bcoin",
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 0.8.0"
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"async": "^0.8.0",
|
|
||||||
"bn.js": "4.6.3",
|
"bn.js": "4.6.3",
|
||||||
"elliptic": "6.0.2",
|
"elliptic": "6.0.2",
|
||||||
"hash.js": "1.0.3",
|
"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": {
|
"devDependencies": {
|
||||||
"browserify": "^3.44.2",
|
"browserify": "13.0.0",
|
||||||
"mocha": "^1.18.2"
|
"mocha": "1.21.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user