-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit d4bc063
Showing
24 changed files
with
25,319 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"targets": { | ||
"node": 6 | ||
} | ||
} | ||
], | ||
"@babel/preset-typescript" | ||
], | ||
"plugins": [ | ||
"@babel/plugin-proposal-class-properties", | ||
"@babel/plugin-proposal-optional-chaining", | ||
"@babel/plugin-proposal-nullish-coalescing-operator" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
docker: | ||
- image: 'circleci/node:latest' | ||
steps: | ||
- checkout | ||
- run: | ||
name: install | ||
command: npm install | ||
- run: | ||
name: lint | ||
command: npm run lint | ||
- run: | ||
name: build | ||
command: npm run build | ||
- run: npm run commitlint-circle | ||
- run: | ||
name: release | ||
command: npm run semantic-release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# EditorConfig helps developers define and maintain consistent | ||
# coding styles between different editors and IDEs | ||
# editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
|
||
# Change these settings to your own preference | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
# We recommend you to keep these unchanged | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
coverage | ||
dist | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"parser": "babel-eslint", | ||
"extends": ["airbnb-base", "plugin:prettier/recommended"], | ||
"env": { | ||
"jest": true | ||
}, | ||
"settings": { | ||
"import/resolver": { | ||
"node": { | ||
"extensions": [".js", ".jsx", ".ts", ".tsx"] | ||
} | ||
} | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": ["**/*.ts", "**/*.tsx"], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"project": "./tsconfig.json" | ||
}, | ||
"plugins": ["@typescript-eslint"], | ||
"rules": { | ||
"no-undef": "off", | ||
"no-unused-vars": "off", | ||
"no-restricted-globals": "off" | ||
} | ||
} | ||
], | ||
"rules": { | ||
"import/extensions": "off", | ||
"import/prefer-default-export": "off", | ||
"import/no-default-export": "error", | ||
"no-underscore-dangle": [2, { "allowAfterThis": true }] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Release | ||
on: | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: 'NPM Deploy' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
run: npx semantic-release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: CI | ||
|
||
on: [push] | ||
|
||
jobs: | ||
test: | ||
name: Lint & Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12.x | ||
- name: Cache Node Modules | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
# npm cache files are stored in `~/.npm` on Linux/macOS | ||
path: ~/.npm | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- name: Install Packages | ||
# there's a problem with ganache-core using a very old version of ethereumjs-abi which fails on git checkout with ssh reasons | ||
run: | | ||
git config --global url."https://".insteadOf git:// | ||
git config --global url."https://".insteadOf git+https:// | ||
git config --global url."https://".insteadOf ssh://git | ||
npm ci | ||
- name: Check Lint | ||
run: npm run lint | ||
- name: Test | ||
run: npm run test | ||
- name: Build | ||
run: npm run build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.DS_Store | ||
coverage | ||
dist | ||
node_modules | ||
*.log | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
save-exact = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"printWidth": 120 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
branch: master | ||
extends: "semantic-release-npm-github-publish" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"generator-semantic-module": { | ||
"packager": "npm", | ||
"commitizen-adapter": "@commitlint/prompt", | ||
"commitlint-config": "@commitlint/config-conventional" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
## [1.9.3](https://github.com/rjchow/nod/compare/v1.9.2...v1.9.3) (2021-01-25) | ||
|
||
|
||
### Chores | ||
|
||
* update dependencies ([#346](https://github.com/rjchow/nod/issues/346)) ([0e54596](https://github.com/rjchow/nod/commit/0e54596741a9c41e0320dc6f52aaaa1a9f64ed64)) | ||
|
||
## [1.9.2](https://github.com/rjchow/nod/compare/v1.9.1...v1.9.2) (2021-01-06) | ||
|
||
|
||
### Chores | ||
|
||
* update dependencies ([#340](https://github.com/rjchow/nod/issues/340)) ([93f9dc4](https://github.com/rjchow/nod/commit/93f9dc47ec377f5b197348073c7d56a8fb5684f1)) | ||
|
||
## [1.9.1](https://github.com/rjchow/nod/compare/v1.9.0...v1.9.1) (2020-12-29) | ||
|
||
|
||
### Chores | ||
|
||
* update dependencies ([#333](https://github.com/rjchow/nod/issues/333)) ([dbf8daf](https://github.com/rjchow/nod/commit/dbf8daf553d5ec6d68d1ce06bbd05d5c4a3e2b8a)) | ||
|
||
# [1.9.0](https://github.com/rjchow/nod/compare/v1.8.3...v1.9.0) (2020-12-24) | ||
|
||
|
||
### Features | ||
|
||
* 🎸 removed default export ([733bee7](https://github.com/rjchow/nod/commit/733bee790e339154e1d2dde34cd952934d7e8800)) | ||
|
||
## [1.8.3](https://github.com/rjchow/nod/compare/v1.8.2...v1.8.3) (2020-12-22) | ||
|
||
|
||
### Chores | ||
|
||
* fix update deps commit message ([412421a](https://github.com/rjchow/nod/commit/412421a8902c8c4672a7264d0abbad01763b4976)) | ||
|
||
## [1.8.2](https://github.com/rjchow/nod/compare/v1.8.1...v1.8.2) (2020-12-15) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* changed updtr command to allow usage in ci ([4a92313](https://github.com/rjchow/nod/commit/4a9231377151055767c32179b57b9bd8aa52fc06)) | ||
|
||
|
||
### Miscellaneous | ||
|
||
* Rename update-deps to update-deps.yml ([2d80e61](https://github.com/rjchow/nod/commit/2d80e61881aac084be065cba057854a5599156e8)) | ||
* Create update-deps ([a7fdec3](https://github.com/rjchow/nod/commit/a7fdec34dd6a3f9ea09cb59a3ba9695291527deb)) | ||
|
||
## [1.8.1](https://github.com/rjchow/nod/compare/v1.8.0...v1.8.1) (2020-10-18) | ||
|
||
|
||
### Chores | ||
|
||
* update deps ([dd89919](https://github.com/rjchow/nod/commit/dd89919525e56f5eb605c8700c10e0e3f787e830)) | ||
|
||
# [1.8.0](https://github.com/rjchow/nod/compare/v1.7.0...v1.8.0) (2020-05-18) | ||
|
||
|
||
### Features | ||
|
||
* added command to upgrade deps ([#223](https://github.com/rjchow/nod/issues/223)) ([a052392](https://github.com/rjchow/nod/commit/a0523927832b8d34c5b9ae77adabe3a445aec0e7)) | ||
|
||
# [1.7.0](https://github.com/rjchow/nod/compare/v1.6.3...v1.7.0) (2020-05-18) | ||
|
||
|
||
### Features | ||
|
||
* major versions upgrade ([#222](https://github.com/rjchow/nod/issues/222)) ([de8c831](https://github.com/rjchow/nod/commit/de8c831e599488c64bede2d3c709f1b04c3a4aba)) | ||
|
||
## [1.6.3](https://github.com/rjchow/nod/compare/v1.6.2...v1.6.3) (2020-01-06) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* 🐛 corrected exported types path in package.json ([#134](https://github.com/rjchow/nod/issues/134)) ([829d7b3](https://github.com/rjchow/nod/commit/829d7b3abf3ccf8f9b37f7c11dbf38ee807a66d3)) | ||
|
||
## [1.6.2](https://github.com/rjchow/nod/compare/v1.6.1...v1.6.2) (2019-12-31) | ||
|
||
|
||
### Chores | ||
|
||
* upgrade dependencies ([#139](https://github.com/rjchow/nod/issues/139)) ([3f6654e](https://github.com/rjchow/nod/commit/3f6654e66aa71f9e69578f683fb47bf0c279fcda)) | ||
|
||
## [1.6.1](https://github.com/rjchow/nod/compare/v1.6.0...v1.6.1) (2019-12-05) | ||
|
||
|
||
### Chores | ||
|
||
* **deps-dev:** bump prettier from 1.18.2 to 1.19.1 ([#121](https://github.com/rjchow/nod/issues/121)) ([f9a51a9](https://github.com/rjchow/nod/commit/f9a51a93139dbb61152b3568550443279967e7a3)) | ||
|
||
# [1.6.0](https://github.com/rjchow/nod/compare/v1.5.0...v1.6.0) (2019-12-05) | ||
|
||
|
||
### Chores | ||
|
||
* **deps:** [security] bump eslint-utils from 1.3.1 to 1.4.3 ([#102](https://github.com/rjchow/nod/issues/102)) ([e8982ed](https://github.com/rjchow/nod/commit/e8982edb1ec0c3cb2e5a971bd033737a637b31e9)) | ||
* **deps:** [security] bump mixin-deep from 1.3.1 to 1.3.2 ([#79](https://github.com/rjchow/nod/issues/79)) ([1da45f7](https://github.com/rjchow/nod/commit/1da45f74ba2de4d425a5a57c97f83c41cac6bb30)) | ||
* **deps:** [security] bump tar from 2.2.1 to 2.2.2 ([#68](https://github.com/rjchow/nod/issues/68)) ([f5b1123](https://github.com/rjchow/nod/commit/f5b1123031eea56e31ca5d1b082c7515906488b3)) | ||
* **deps-dev:** bump @babel/core from 7.4.5 to 7.7.2 ([#112](https://github.com/rjchow/nod/issues/112)) ([f0e8e28](https://github.com/rjchow/nod/commit/f0e8e28c34430de2f52771e2e25c2cfe5a1b7d9b)) | ||
* **deps-dev:** bump @babel/preset-env from 7.4.5 to 7.7.1 ([#110](https://github.com/rjchow/nod/issues/110)) ([4ef4bbe](https://github.com/rjchow/nod/commit/4ef4bbe622f2062fb2480f4cd83863e676e89e51)) | ||
* **deps-dev:** bump @types/jest from 24.0.15 to 24.0.23 ([#115](https://github.com/rjchow/nod/issues/115)) ([686f2f2](https://github.com/rjchow/nod/commit/686f2f29d521ff27ab9e9cee12e982433bacf50b)) | ||
* **deps-dev:** bump eslint from 6.0.0 to 6.6.0 ([39be3df](https://github.com/rjchow/nod/commit/39be3dff033552907838cbd2a658ae1dcc0ef68e)) | ||
* **deps-dev:** bump eslint from 6.0.0 to 6.6.0 ([f379f3f](https://github.com/rjchow/nod/commit/f379f3f9553e2a4024641be5746d30b2653f5092)) | ||
* **deps-dev:** bump eslint-plugin-import from 2.17.3 to 2.18.2 ([#58](https://github.com/rjchow/nod/issues/58)) ([cf990fa](https://github.com/rjchow/nod/commit/cf990fa505d98c19765165487f5df3da40f2275c)) | ||
* **deps-dev:** bump husky from 2.4.1 to 3.1.0 ([#118](https://github.com/rjchow/nod/issues/118)) ([4d8abce](https://github.com/rjchow/nod/commit/4d8abce43d646c7b41740699fa7a597d02c15d30)) | ||
* **deps-dev:** bump lint-staged from 9.2.0 to 9.4.3 ([a35c989](https://github.com/rjchow/nod/commit/a35c98935577da520d96bdef20f98bb740c1fff0)) | ||
* **deps-dev:** bump lint-staged from 9.2.0 to 9.4.3 ([fc12f18](https://github.com/rjchow/nod/commit/fc12f189a3a7d01de90de80c2d0c609aa6274c1d)) | ||
* **deps-dev:** bump semantic-release from 15.13.18 to 15.13.31 ([2b55c94](https://github.com/rjchow/nod/commit/2b55c9474e19f7ea23df95a21f185429371c435b)) | ||
* **deps-dev:** bump semantic-release from 15.13.18 to 15.13.31 ([264472e](https://github.com/rjchow/nod/commit/264472e74d7ed5ac76cc82e5485ed796cddb0f99)) | ||
* **dev-deps:** npm audit ([a5a7dfc](https://github.com/rjchow/nod/commit/a5a7dfcd3d825bb9c110c26e31391777a14a74b1)) | ||
|
||
|
||
### Features | ||
|
||
* 🎸 Added semantic release configuration for npm release ([#131](https://github.com/rjchow/nod/issues/131)) ([cee2d64](https://github.com/rjchow/nod/commit/cee2d645cabff1f1b6ba50635e8fc2e993dd5ef8)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2021 RJ Chow | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
Oops, something went wrong.