Skip to content

Commit 1dcd56c

Browse files
0.0.9 release (#125)
* npm: bump @microsoft/api-documenter from 7.8.17 to 7.8.19 Bumps [@microsoft/api-documenter](https://github.com/microsoft/rushstack) from 7.8.17 to 7.8.19. - [Release notes](https://github.com/microsoft/rushstack/releases) - [Commits](https://github.com/microsoft/rushstack/compare/@microsoft/api-documenter_v7.8.17...@microsoft/api-documenter_v7.8.19) Signed-off-by: dependabot[bot] <support@github.com> * npm: bump eslint-plugin-react from 7.20.0 to 7.20.1 Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.20.0 to 7.20.1. - [Release notes](https://github.com/yannickcr/eslint-plugin-react/releases) - [Changelog](https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md) - [Commits](jsx-eslint/eslint-plugin-react@v7.20.0...v7.20.1) 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 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 @microsoft/api-documenter from 7.8.19 to 7.8.21 Bumps [@microsoft/api-documenter](https://github.com/microsoft/rushstack) from 7.8.19 to 7.8.21. - [Release notes](https://github.com/microsoft/rushstack/releases) - [Commits](https://github.com/microsoft/rushstack/compare/@microsoft/api-documenter_v7.8.19...@microsoft/api-documenter_v7.8.21) Signed-off-by: dependabot[bot] <support@github.com> * npm: bump eslint-plugin-react from 7.20.1 to 7.20.3 Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.20.1 to 7.20.3. - [Release notes](https://github.com/yannickcr/eslint-plugin-react/releases) - [Changelog](https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md) - [Commits](jsx-eslint/eslint-plugin-react@v7.20.1...v7.20.3) Signed-off-by: dependabot[bot] <support@github.com> * npm: bump eslint-plugin-react-hooks from 4.0.4 to 4.0.5 Bumps [eslint-plugin-react-hooks](https://github.com/facebook/react/tree/HEAD/packages/eslint-plugin-react-hooks) from 4.0.4 to 4.0.5. - [Release notes](https://github.com/facebook/react/releases) - [Changelog](https://github.com/facebook/react/blob/master/CHANGELOG.md) - [Commits](https://github.com/facebook/react/commits/HEAD/packages/eslint-plugin-react-hooks) Signed-off-by: dependabot[bot] <support@github.com> * chore(dependecies): update dev dependencies * chore(dependencies): update dev dependencies * chore(dependencies): update dependencies * chore(dev dependencies): ⬆️ updates dependencies * ci(dev dependencies): 🐛 runs ci on node 12, 16 and 17 * ci: 🐛 adds codacy config * ci: 🐛 fixes executable bit on hooks * chore: 🔖 bumps version * docs(docs): ⬆️ bumps version * ci(workflows): 👷 refactors GitHub workflows * revert: ♻️ reverts auto fix * ci(workflows): 👷 test previous node versions * ci(workflows): 🐛 removes node 15.x * ci(workflows): 🐛 removes node 10.x * fix: 🐛 fixes json with comments issue * refactor(dependencies): ⬆️ removes node 10 support * fix(script): 🐛 fixes copy and paste issue * chore(release): 🔖 0.0.9 release * ci(workflows): 👷 adds node 13 and 14 to ci workflow Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent dfd38e9 commit 1dcd56c

35 files changed

+427
-213
lines changed

.circleci/config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
- node/with-cache:
1111
steps:
1212
- run: npm install
13+
- run: npm test
14+
- run: npm build
1315
workflows:
1416
build-and-test:
1517
jobs:

.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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ plugins:
1010
enabled: false
1111
eslint:
1212
enabled: true
13-
channel: 'eslint-6'
1413
config:
1514
config: .eslintrc-cc.json
1615
extensions:
@@ -35,3 +34,5 @@ exclude_patterns:
3534
- '**/test'
3635
- '**/docs'
3736
- '**/node_modules/'
37+
- '**/.husky'
38+
- '**/commitlint.config.js'

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ README.md
88
SECURITY.md
99
CHANGELOG.md
1010
LICENSE
11+
commitlint.config.js

.eslintrc.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
"parser": "@typescript-eslint/parser",
44
"plugins": ["prettier", "jest", "unicorn", "@typescript-eslint"],
55
"extends": [
6-
"plugin:@typescript-eslint/recommended",
76
"plugin:jest/recommended",
87
"plugin:unicorn/recommended",
9-
"plugin:prettier/recommended",
10-
"prettier/@typescript-eslint"
8+
"plugin:prettier/recommended"
119
],
1210
"parserOptions": {
1311
"ecmaVersion": 2020,
@@ -22,7 +20,6 @@
2220
},
2321
"rules": {
2422
"@typescript-eslint/explicit-module-boundary-types": "off",
25-
"@typescript-eslint/no-unused-vars": ["error", { "varsIgnorePattern": "createElement" }],
2623
"sort-imports": [
2724
"error",
2825
{

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!--- Provide a general summary of your changes in the Title above -->
22

3-
## Description
3+
# Description
44

55
<!--- Describe your changes in detail -->
66

@@ -21,17 +21,18 @@
2121
<!--- Include details of your testing environment, and the tests you ran to -->
2222
<!--- see how your change affects other areas of the code, etc. -->
2323

24-
## Screenshots (if appropriate):
24+
## Screenshots (if appropriate)
2525

2626
## Types of changes
2727

2828
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
2929

30+
- [ ] Dependencies (non-breaking change which updates dependencies)
3031
- [ ] Bug fix (non-breaking change which fixes an issue)
3132
- [ ] New feature (non-breaking change which adds functionality)
3233
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
3334

34-
## Checklist:
35+
## Checklist
3536

3637
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
3738
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
version: 2
22
updates:
3+
4+
- package-ecosystem: 'github-actions'
5+
directory: '/'
6+
schedule:
7+
interval: 'weekly'
8+
labels:
9+
- 'npm dependencies'
10+
commit-message:
11+
prefix: 'github-actions'
12+
assignees:
13+
- 'gregoranders'
14+
target-branch: 'development'
15+
316
- package-ecosystem: 'npm'
417
directory: '/'
518
schedule:
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: "CodeQL"
2+
on:
3+
push:
4+
branches: [ main, development, feature/* ]
5+
pull_request:
6+
branches: [ main, development, feature/* ]
7+
schedule:
8+
- cron: '43 7 * * 0'
9+
jobs:
10+
analyze:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
actions: read
14+
contents: read
15+
security-events: write
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
language: [ 'javascript' ]
20+
steps:
21+
- uses: actions/checkout@v2
22+
with:
23+
submodules: recursive
24+
- uses: actions/setup-node@v2
25+
with:
26+
node-version: 16.x
27+
- name: Echo Node.js version
28+
run: node --version
29+
- name: Initialize CodeQL
30+
uses: github/codeql-action/init@v1
31+
with:
32+
languages: ${{ matrix.language }}
33+
- name: Autobuild
34+
uses: github/codeql-action/autobuild@v1
35+
- name: Perform CodeQL Analysis
36+
uses: github/codeql-action/analyze@v1

.github/workflows/development.yml

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77

88
env:
99
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 }}
1014

1115
jobs:
1216
build:
@@ -15,12 +19,12 @@ jobs:
1519
strategy:
1620
matrix:
1721
os: [ubuntu-latest, macos-latest, windows-latest]
18-
node-version: [10.x, 12.x, 13.x, 14.x]
22+
node-version: [12.x, 13.x, 14.x, 16.x, 17.x]
1923

2024
steps:
2125
- uses: actions/checkout@v2
2226
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
23-
uses: actions/setup-node@v1
27+
uses: actions/setup-node@v2
2428
with:
2529
node-version: ${{ matrix.node-version }}
2630
- name: nodejs project information
@@ -29,9 +33,35 @@ jobs:
2933
- name: npm install
3034
run: |
3135
npm install
36+
- name: npm test
37+
run: |
38+
npm test
39+
- name: npm run build
40+
run: |
41+
npm run build
3242
- name: code coverage
33-
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '14.x'
43+
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '16.x'
3444
uses: coverallsapp/github-action@master
3545
with:
3646
github-token: ${{ secrets.GITHUB_TOKEN }}
3747
path-to-lcov: ./test/coverage/lcov.info
48+
- name: publish code coverage to code climate
49+
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '16.x'
50+
uses: paambaati/codeclimate-action@v3.0.0
51+
env:
52+
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
53+
with:
54+
coverageCommand: npm test
55+
coverageLocations: |
56+
./test/coverage/lcov.info:lcov
57+
- name: run codacy-coverage-reporter
58+
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '16.x'
59+
uses: codacy/codacy-coverage-reporter-action@master
60+
with:
61+
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
62+
coverage-reports: ./test/coverage/lcov.info
63+
- name: Publish Unit Test Results
64+
uses: EnricoMi/publish-unit-test-result-action/composite@v1
65+
with:
66+
check_name: Unit Test Results node${{ matrix.node-version }}-${{ matrix.os }}
67+
files: test/junit.xml

.github/workflows/feature.yml

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,24 @@ on:
77

88
env:
99
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 }}
1014

1115
jobs:
1216
build:
1317
runs-on: ${{ matrix.os }}
1418

1519
strategy:
1620
matrix:
17-
os: [ubuntu-latest]
18-
node-version: [14.x]
21+
os: [ubuntu-latest, macos-latest, windows-latest]
22+
node-version: [12.x, 16.x, 17.x]
1923

2024
steps:
2125
- uses: actions/checkout@v2
2226
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
23-
uses: actions/setup-node@v1
27+
uses: actions/setup-node@v2
2428
with:
2529
node-version: ${{ matrix.node-version }}
2630
- name: nodejs project information
@@ -29,9 +33,35 @@ jobs:
2933
- name: npm install
3034
run: |
3135
npm install
36+
- name: npm test
37+
run: |
38+
npm test
39+
- name: npm run build
40+
run: |
41+
npm run build
3242
- name: code coverage
33-
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '14.x'
43+
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '16.x'
3444
uses: coverallsapp/github-action@master
3545
with:
3646
github-token: ${{ secrets.GITHUB_TOKEN }}
3747
path-to-lcov: ./test/coverage/lcov.info
48+
- name: publish code coverage to code climate
49+
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '16.x'
50+
uses: paambaati/codeclimate-action@v3.0.0
51+
env:
52+
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
53+
with:
54+
coverageCommand: npm test
55+
coverageLocations: |
56+
./test/coverage/lcov.info:lcov
57+
- name: run codacy-coverage-reporter
58+
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '16.x'
59+
uses: codacy/codacy-coverage-reporter-action@master
60+
with:
61+
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
62+
coverage-reports: ./test/coverage/lcov.info
63+
- name: Publish Unit Test Results
64+
uses: EnricoMi/publish-unit-test-result-action/composite@v1
65+
with:
66+
check_name: Unit Test Results node${{ matrix.node-version }}-${{ matrix.os }}
67+
files: test/junit.xml

0 commit comments

Comments
 (0)