Skip to content

Commit 3d173bd

Browse files
0.0.10 Release
* chore(release): prepare next release * npm: bump @actions/github from 3.0.0 to 4.0.0 Bumps [@actions/github](https://github.com/actions/toolkit/tree/HEAD/packages/github) from 3.0.0 to 4.0.0. - [Release notes](https://github.com/actions/toolkit/releases) - [Changelog](https://github.com/actions/toolkit/blob/master/packages/github/RELEASES.md) - [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/github) Signed-off-by: dependabot[bot] <support@github.com> * npm: bump @typescript-eslint/parser from 3.4.0 to 3.5.0 Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 3.4.0 to 3.5.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v3.5.0/packages/parser) Signed-off-by: dependabot[bot] <support@github.com> * npm: bump @typescript-eslint/eslint-plugin from 3.4.0 to 3.5.0 Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 3.4.0 to 3.5.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v3.5.0/packages/eslint-plugin) Signed-off-by: dependabot[bot] <support@github.com> * npm: bump typescript from 3.9.5 to 3.9.6 Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.9.5 to 3.9.6. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/commits) Signed-off-by: dependabot[bot] <support@github.com> * npm: bump eslint from 7.3.1 to 7.4.0 Bumps [eslint](https://github.com/eslint/eslint) from 7.3.1 to 7.4.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md) - [Commits](eslint/eslint@v7.3.1...v7.4.0) Signed-off-by: dependabot[bot] <support@github.com> * npm: bump eslint-plugin-jest from 23.17.1 to 23.18.0 Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 23.17.1 to 23.18.0. - [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases) - [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/master/CHANGELOG.md) - [Commits](jest-community/eslint-plugin-jest@v23.17.1...v23.18.0) Signed-off-by: dependabot[bot] <support@github.com> * npm: bump @typescript-eslint/parser from 3.5.0 to 3.6.0 Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 3.5.0 to 3.6.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v3.6.0/packages/parser) Signed-off-by: dependabot[bot] <support@github.com> * npm: bump @typescript-eslint/eslint-plugin from 3.5.0 to 3.6.0 Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 3.5.0 to 3.6.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v3.6.0/packages/eslint-plugin) Signed-off-by: dependabot[bot] <support@github.com> * npm: bump @types/jest from 26.0.3 to 26.0.4 Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.3 to 26.0.4. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest) Signed-off-by: dependabot[bot] <support@github.com> * npm: bump @typescript-eslint/eslint-plugin from 3.6.0 to 3.6.1 Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 3.6.0 to 3.6.1. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v3.6.1/packages/eslint-plugin) Signed-off-by: dependabot[bot] <support@github.com> * npm: bump @typescript-eslint/parser from 3.6.0 to 3.6.1 Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 3.6.0 to 3.6.1. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v3.6.1/packages/parser) Signed-off-by: dependabot[bot] <support@github.com> * npm: bump typescript from 3.9.6 to 3.9.7 Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.9.6 to 3.9.7. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](microsoft/TypeScript@v3.9.6...v3.9.7) Signed-off-by: dependabot[bot] <support@github.com> * npm: bump ts-jest from 26.1.1 to 26.1.3 Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 26.1.1 to 26.1.3. - [Release notes](https://github.com/kulshekhar/ts-jest/releases) - [Changelog](https://github.com/kulshekhar/ts-jest/blob/master/CHANGELOG.md) - [Commits](kulshekhar/ts-jest@v26.1.1...v26.1.3) Signed-off-by: dependabot[bot] <support@github.com> * npm: bump eslint-plugin-unicorn from 20.1.0 to 21.0.0 Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) from 20.1.0 to 21.0.0. - [Release notes](https://github.com/sindresorhus/eslint-plugin-unicorn/releases) - [Commits](sindresorhus/eslint-plugin-unicorn@v20.1.0...v21.0.0) Signed-off-by: dependabot[bot] <support@github.com> * npm: bump @types/jest from 26.0.4 to 26.0.5 Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.4 to 26.0.5. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest) Signed-off-by: dependabot[bot] <support@github.com> * npm: bump eslint from 7.4.0 to 7.5.0 Bumps [eslint](https://github.com/eslint/eslint) from 7.4.0 to 7.5.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md) - [Commits](eslint/eslint@v7.4.0...v7.5.0) Signed-off-by: dependabot[bot] <support@github.com> * refactor(vscode): refactor visual code config * refactor(CI): refactor GitHub CI * refactor(build): add codacy and code climate * docs(update): update docs * refactor(test): move test utils * refactor(package): refactor package.json * chore(release): 0.0.10 * docs(changelog): update changelog Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 43bf4a4 commit 3d173bd

24 files changed

+452
-143
lines changed

.codacy.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
engines:
3+
duplication:
4+
exclude_paths:
5+
- config/engines.yml
6+
metric:
7+
exclude_paths:
8+
- config/engines.yml
9+
remark-int:
10+
exclude_paths:
11+
- config/engines.yml
12+
coverage:
13+
exclude_paths:
14+
- config/engines.yml
15+
exclude_paths:
16+
- '.circleci/**'
17+
- '.github/**'
18+
- '.vscode/**'
19+
- 'src/index.ts'
20+
- 'src/fixtures/**'
21+
- 'src/*.spec.*'
22+
- '**.json'
23+
- '**.yml'
24+
- '**.md'

.codeclimate.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
version: '2'
2+
plugins:
3+
editorconfig:
4+
enabled: true
5+
tslint:
6+
enabled: false
7+
eslint:
8+
enabled: true
9+
channel: 'eslint-6'
10+
config:
11+
config: .eslintrc-cc.json
12+
fixme:
13+
enabled: true
14+
git-legal:
15+
enabled: true
16+
exclude_patterns:
17+
- '**/.github'
18+
- '**/.circleci'
19+
- '**/.vscode'
20+
- '**/dist'
21+
- '**/temp'
22+
- '**/test'
23+
- '**/docs'
24+
- '**/node_modules/'
25+
- '**/src/*.spec.ts'

.eslintrc-cc.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"root": true,
3+
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
4+
"parserOptions": {
5+
"ecmaVersion": 2020,
6+
"sourceType": "module",
7+
"ecmaFeatures": {}
8+
},
9+
"env": {
10+
"node": true,
11+
"browser": true,
12+
"es2020": true
13+
},
14+
"rules": {
15+
"complexity": ["error", 8]
16+
},
17+
"settings": {},
18+
"globals": {}
19+
}

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<!--- Provide a general summary of your changes in the Title above -->
2+
3+
## Description
4+
5+
<!--- Describe your changes in detail -->
6+
7+
## Related Issue
8+
9+
<!--- This project only accepts pull requests related to open issues -->
10+
<!--- If suggesting a new feature or change, please discuss it in an issue first -->
11+
<!--- If fixing a bug, there should be an issue describing it with steps to reproduce -->
12+
<!--- Please link to the issue here: -->
13+
14+
## Motivation and Context
15+
16+
<!--- Why is this change required? What problem does it solve? -->
17+
18+
## How Has This Been Tested?
19+
20+
<!--- Please describe in detail how you tested your changes. -->
21+
<!--- Include details of your testing environment, and the tests you ran to -->
22+
<!--- see how your change affects other areas of the code, etc. -->
23+
24+
## Screenshots (if appropriate):
25+
26+
## Types of changes
27+
28+
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
29+
30+
- [ ] Dependencies (non-breaking change which updates dependencies)
31+
- [ ] Bug fix (non-breaking change which fixes an issue)
32+
- [ ] New feature (non-breaking change which adds functionality)
33+
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
34+
35+
## Checklist:
36+
37+
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
38+
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
39+
40+
- [ ] My code follows the code style of this project.
41+
- [ ] My change requires a change to the documentation.
42+
- [ ] I have updated the documentation accordingly.
43+
- [ ] I have read the **CONTRIBUTING** document.
44+
- [ ] I have added tests to cover my changes.
45+
- [ ] All new and existing tests passed.

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ updates:
33
- package-ecosystem: 'npm'
44
directory: '/'
55
schedule:
6-
interval: 'daily'
6+
interval: 'weekly'
77
labels:
88
- 'npm dependencies'
99
commit-message:

.github/workflows/development.yml

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,54 +5,59 @@ on:
55
branches:
66
- development
77

8+
env:
9+
CI: true
10+
GITHUB_BRANCH: ${{ github.ref }}
11+
GITHUB_HEAD_REF: ${{ github.head_ref }}
12+
GITHUB_BASE_REF: ${{ github.base_ref }}
13+
GITHUB_COMMIT: ${{ github.sha }}
14+
815
jobs:
916
build:
1017
runs-on: ${{ matrix.os }}
1118

1219
strategy:
1320
matrix:
14-
os: [ubuntu-latest]
15-
node-version: [14.x]
21+
os: [ubuntu-latest, macos-latest, windows-latest]
22+
node-version: [12.x]
1623

1724
steps:
18-
- uses: actions/checkout@v1
25+
- uses: actions/checkout@v2
26+
with:
27+
submodules: recursive
1928
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
2029
uses: actions/setup-node@v1
2130
with:
2231
node-version: ${{ matrix.node-version }}
2332
- name: nodejs project info
2433
id: projectinfo
25-
uses: gregoranders/nodejs-project-info@master
26-
env:
27-
CI: true
34+
uses: gregoranders/nodejs-create-release@master
2835
- name: npm install
2936
run: |
3037
npm install
31-
env:
32-
CI: true
3338
- name: npm run build
3439
run: |
3540
npm run build
36-
env:
37-
CI: true
3841
- name: npm test
3942
run: |
4043
npm test
41-
env:
42-
CI: true
4344
- name: code coverage
4445
uses: coverallsapp/github-action@master
4546
with:
4647
github-token: ${{ secrets.GITHUB_TOKEN }}
47-
path-to-lcov: ./coverage/lcov.info
48-
env:
49-
CI: true
48+
path-to-lcov: ./test/coverage/lcov.info
5049
- name: publish code coverage to code climate
5150
if: matrix.os == 'ubuntu-latest'
52-
uses: paambaati/codeclimate-action@v2.3.0
51+
uses: paambaati/codeclimate-action@v2.6.0
5352
env:
54-
CI: true
55-
CC_TEST_REPORTER_ID: ${{ secrets.CODE_CLIMATE }}
53+
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
5654
with:
5755
coverageCommand: npm run test
58-
debug: true
56+
coverageLocations: |
57+
./test/coverage/lcov.info:lcov
58+
- name: run codacy-coverage-reporter
59+
if: matrix.os == 'ubuntu-latest'
60+
uses: codacy/codacy-coverage-reporter-action@master
61+
with:
62+
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
63+
coverage-reports: ./test/coverage/lcov.info

.github/workflows/master.yml

Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,65 +5,73 @@ on:
55
branches:
66
- master
77

8+
env:
9+
CI: true
10+
GITHUB_BRANCH: ${{ github.ref }}
11+
GITHUB_HEAD_REF: ${{ github.head_ref }}
12+
GITHUB_BASE_REF: ${{ github.base_ref }}
13+
GITHUB_COMMIT: ${{ github.sha }}
14+
815
jobs:
916
build:
1017
runs-on: ${{ matrix.os }}
1118

1219
strategy:
1320
matrix:
14-
os: [ubuntu-latest]
15-
node-version: [14.x]
21+
os: [ubuntu-latest, macos-latest, windows-latest]
22+
node-version: [12.x]
1623

1724
steps:
18-
- uses: actions/checkout@v1
25+
- uses: actions/checkout@v2
26+
with:
27+
submodules: recursive
1928
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
2029
uses: actions/setup-node@v1
2130
with:
2231
node-version: ${{ matrix.node-version }}
2332
- name: nodejs project info
2433
id: projectinfo
2534
uses: gregoranders/nodejs-project-info@master
26-
env:
27-
CI: true
2835
- name: npm install
2936
run: |
3037
npm install
31-
env:
32-
CI: true
3338
- name: npm run build
3439
run: |
3540
npm run build
36-
env:
37-
CI: true
3841
- name: npm test
3942
run: |
4043
npm test
41-
env:
42-
CI: true
4344
- name: code coverage
45+
if: matrix.os == 'ubuntu-latest'
4446
uses: coverallsapp/github-action@master
4547
with:
4648
github-token: ${{ secrets.GITHUB_TOKEN }}
47-
path-to-lcov: ./coverage/lcov.info
48-
env:
49-
CI: true
49+
path-to-lcov: ./test/coverage/lcov.info
5050
- name: publish code coverage to code climate
5151
if: matrix.os == 'ubuntu-latest'
52-
uses: paambaati/codeclimate-action@v2.3.0
52+
uses: paambaati/codeclimate-action@v2.6.0
5353
env:
54-
CI: true
55-
CC_TEST_REPORTER_ID: ${{ secrets.CODE_CLIMATE }}
54+
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
5655
with:
5756
coverageCommand: npm run test
58-
debug: true
57+
coverageLocations: |
58+
./test/coverage/lcov.info:lcov
59+
- name: run codacy-coverage-reporter
60+
if: matrix.os == 'ubuntu-latest'
61+
uses: codacy/codacy-coverage-reporter-action@master
62+
with:
63+
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
64+
coverage-reports: ./test/coverage/lcov.info
5965
- name: create release
66+
if: matrix.os == 'ubuntu-latest'
6067
id: createrelease
6168
uses: gregoranders/nodejs-create-release@master
6269
env:
6370
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
71+
PACKAGE_JSON: ${{ steps.projectinfo.outputs.context }}
6472
with:
6573
tag: v${{ steps.projectinfo.outputs.version }}
6674
name: ${{ steps.projectinfo.outputs.name }} - ${{ steps.projectinfo.outputs.version }}
6775
body: ${{ steps.projectinfo.outputs.name }} - ${{ steps.projectinfo.outputs.version }} Release
68-
draft: false
76+
draft: true
6977
target: ${{ github.ref }}

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
dist/
2-
coverage/
2+
test/
33
node_modules/
44

55
package-lock.json
66

77
*.js
88
*.js.map
9+
10+
!dist/index.js

.vscode/extensions.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"recommendations": [
3+
"coenraads.bracket-pair-colorizer",
4+
"editorconfig.editorconfig",
5+
"dbaeumer.vscode-eslint",
6+
"orta.vscode-jest",
7+
"pkief.material-icon-theme",
8+
"marlosirapuan.nord-deep",
9+
"eg2.vscode-npm-script",
10+
"esbenp.prettier-vscode",
11+
"rvest.vs-code-prettier-eslint",
12+
"pflannery.vscode-versionlens",
13+
"visualstudioexptteam.vscodeintellicode",
14+
"ms-azuretools.vscode-docker",
15+
"cschleiden.vscode-github-actions",
16+
"github.vscode-pull-request-github"
17+
]
18+
}

.vscode/launch.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@
88
"program": "${workspaceFolder}/src/index.ts",
99
"preLaunchTask": "tsc: build - tsconfig.json",
1010
"outFiles": ["${workspaceFolder}/dist/**/*.js"]
11+
},
12+
{
13+
"name": "Debug Tests",
14+
"type": "node",
15+
"request": "launch",
16+
"runtimeArgs": ["--inspect-brk", "${workspaceRoot}/node_modules/.bin/jest", "--runInBand"],
17+
"console": "integratedTerminal",
18+
"internalConsoleOptions": "neverOpen",
19+
"port": 9229
1120
}
1221
]
1322
}

0 commit comments

Comments
 (0)