Repo standardization (#50)

* Enforcing minimum node version 12 via .nvmrc, circleci, and package file
* Adding basic .gitattributes file
* Adding entry about running tests to the readme
This commit is contained in:
ryanml
2021-04-05 14:32:49 -07:00
committed by GitHub
parent 2ffc584ef9
commit d2276f1120
5 changed files with 17 additions and 5 deletions

View File

@@ -5,7 +5,7 @@ executors:
parameters:
node_version:
type: integer
default: 10
default: 12
docker:
- image: circleci/node:<< parameters.node_version >>
@@ -16,14 +16,14 @@ workflows:
name: prep-deps-<< matrix.node_version >>
matrix:
parameters:
node_version: [10, 12, 14]
node_version: [12, 14]
- test-lint:
requires:
- prep-deps-10
- prep-deps-12
- test-unit:
matrix:
parameters:
node_version: [10, 12, 14]
node_version: [12, 14]
requires:
- prep-deps-<< matrix.node_version >>
- all-tests-pass:

3
.gitattributes vendored Normal file
View File

@@ -0,0 +1,3 @@
* text=auto
yarn.lock linguist-generated=false

2
.nvmrc
View File

@@ -1 +1 @@
v10
v12

View File

@@ -25,6 +25,12 @@ cleanup:
filterMiddleware.destroy()
```
## Running Tests
```bash
yarn test
```
### Changelog
##### 2.0

View File

@@ -3,6 +3,9 @@
"version": "4.2.2",
"description": "[json-rpc-engine](https://github.com/MetaMask/json-rpc-engine) middleware implementing ethereum filter methods. Backed by an [eth-block-tracker](https://github.com/MetaMask/eth-block-tracker) and web3 provider interface (`web3.currentProvider`).",
"main": "index.js",
"engines": {
"node": ">=12.0.0"
},
"scripts": {
"lint": "printf '%s\\n' 'No lint command'",
"test": "node test"