diff --git a/.npmignore b/.npmignore new file mode 100644 index 000000000..61b58ad44 --- /dev/null +++ b/.npmignore @@ -0,0 +1,20 @@ +*.swp +coverage +node_modules +browser/tests.js +docs/api + +CONTRIBUTING.html +LICENSE.html +README.html +examples.html +npm-debug.log + +apiref +bower_components +report +.DS_Store + +build + +tests.js diff --git a/README.md b/README.md index e7755def8..b3fc13ba5 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Infrastructure to build Bitcoin and blockchain-based applications for the next g ## Getting Started -Before you begin you'll need to have Node.js v4 or v0.12 installed. There are several options for installation. One method is to use [nvm](https://github.com/creationix/nvm) to easily switch between different versions, or download directly from [Node.js](https://nodejs.org/). +Before you begin you'll need to have Node.js v8 installed. There are several options for installation. One method is to use [nvm](https://github.com/creationix/nvm) to easily switch between different versions, or download directly from [Node.js](https://nodejs.org/). ```bash npm install -g bitcore @@ -78,7 +78,6 @@ This will generate files named `bitcore.js` and `bitcore.min.js`. You can also use our pre-generated files, provided for each release along with a PGP signature by one of the project's maintainers. To get them, checkout a release commit (for example, https://github.com/bitpay/bitcore/commit/e33b6e3ba6a1e5830a079e02d949fce69ea33546 for v0.12.6). To verify signatures, use the following PGP keys: -- @braydonf: https://pgp.mit.edu/pks/lookup?op=get&search=0x9BBF07CAC07A276D `D909 EFE6 70B5 F6CC 89A3 607A 9BBF 07CA C07A 276D` - @gabegattis: https://pgp.mit.edu/pks/lookup?op=get&search=0x441430987182732C `F3EA 8E28 29B4 EC93 88CB B0AA 4414 3098 7182 732C` - @kleetus: https://pgp.mit.edu/pks/lookup?op=get&search=0x33195D27EF6BDB7F `F8B0 891C C459 C197 65C2 5043 3319 5D27 EF6B DB7F` - @matiu: https://pgp.mit.edu/pks/lookup?op=get&search=0x9EDE6DE4DE531FAC `25CE ED88 A1B1 0CD1 12CD 4121 9EDE 6DE4 DE53 1FAC` @@ -87,4 +86,4 @@ To verify signatures, use the following PGP keys: Code released under [the MIT license](https://github.com/bitpay/bitcore/blob/master/LICENSE). -Copyright 2013-2015 BitPay, Inc. Bitcore is a trademark maintained by BitPay, Inc. +Copyright 2013-2017 BitPay, Inc. Bitcore is a trademark maintained by BitPay, Inc. diff --git a/bin/bitcore b/bin/bitcore index cfaa8abd0..631d2ce76 100755 --- a/bin/bitcore +++ b/bin/bitcore @@ -1,5 +1,9 @@ #!/usr/bin/env node +if (parseInt(process.version.split('.')[0].slice(1)) < 8) { + throw new Error('Bitcore requires Node version 8 or higher.'); +} + var bitcore = require('bitcore-node/lib/cli/bitcore'); var path = require('path'); var servicesPath = path.resolve(__dirname, '../'); diff --git a/bin/bitcored b/bin/bitcored index 257c1ecf6..0e4dc14db 100755 --- a/bin/bitcored +++ b/bin/bitcored @@ -2,6 +2,10 @@ 'use strict'; +if (parseInt(process.version.split('.')[0].slice(1)) < 8) { + throw new Error('Bitcore requires Node version 8 or higher.'); +} + var path = require('path'); var bitcored = require('bitcore-node/lib/cli/bitcored'); var servicesPath = path.resolve(__dirname, '../'); diff --git a/package-lock.json b/package-lock.json index 2612e3fdd..92fa5d4a1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "bitcore", - "version": "5.0.0-beta.3", + "version": "5.0.0-beta.4", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index ad5350263..5ded783a3 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,9 @@ "name": "bitcore", "version": "5.0.0-beta.4", "description": "A platform to build bitcoin and blockchain-based applications.", + "engines": { + "node": ">=8.0.0" + }, "author": "BitPay ", "main": "index.js", "scripts": {