From e2759707f22e7c7d659e422405a536a708db8c66 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Fri, 19 Feb 2016 22:29:33 -0800 Subject: [PATCH] package.json and Makefile. --- Makefile | 12 ++++++++++++ lib/bcoin.js | 4 ++-- lib/bcoin/pool.js | 1 - package.json | 27 ++++++++++++++++----------- 4 files changed, 30 insertions(+), 14 deletions(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..5e5885e1 --- /dev/null +++ b/Makefile @@ -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 diff --git a/lib/bcoin.js b/lib/bcoin.js index 03f33427..3e41532c 100644 --- a/lib/bcoin.js +++ b/lib/bcoin.js @@ -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'); diff --git a/lib/bcoin/pool.js b/lib/bcoin/pool.js index a964a6af..c9b8ae33 100644 --- a/lib/bcoin/pool.js +++ b/lib/bcoin/pool.js @@ -4,7 +4,6 @@ * https://github.com/indutny/bcoin */ -var async = require('async'); var inherits = require('inherits'); var EventEmitter = require('events').EventEmitter; diff --git a/package.json b/package.json index 2d270196..5815e39b 100644 --- a/package.json +++ b/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 ", "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" } }