Skip to content

Commit 5381730

Browse files
Refactor build configuration (#166)
* 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/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-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 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 @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.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 @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 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 @octokit/rest from 18.0.0 to 18.0.1 Bumps [@octokit/rest](https://github.com/octokit/rest.js) from 18.0.0 to 18.0.1. - [Release notes](https://github.com/octokit/rest.js/releases) - [Commits](octokit/rest.js@v18.0.0...v18.0.1) 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 @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-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 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> * chore(quality): add codacy and codeclimate * refactor(vscode): refactor vscode config * refactor(build): refactor GitHub CI * refactor(docs): refactor docs * refactor(test): move test utils * docs(SECURITY): update * refactor(eslint): fix complexity issue * chore(docs): update docs * chore(dependencies): update dependencie * chore(buildf): add build path * chore(release): 0.0.10 release * docs(changelog): update changelog * chore(dependencies): update dev dependencies * chore(dependencies): update dev dependencies * chore(dependencies): update dependnencies * chore(dependencies): update dev dependencies * chore(release): bump version * chore(CHANGELOG): update changelog * chore(release): bump version * chore(dependencies): update dependencies * chore(dist): update dist * chore(codequality): renamed variable * chore(codequality): renamed variable, find to some * chore(docs): update README * chore(docs): update SECURITY * chore(docs): update CHANGELOG * build(dependencies): ➕ introduces conventional commit Updates husky and lint-stage dependencies and introduces conventional commit. * chore(dependencies): ⬆️ updates jest dependencies * chore(dependencies): ⬆️ updates ncc dependency Replaces @zeit/ncc with @vercel/ncc. * build(dependencies): ➖ removes jest typing * chore(dependencies): ⬆️ updates eslint dependencies Updates eslint related configurations * build(dependencies): ➖ removes ts-code dependency * chore(dependencies): ⬆️ updates typescript dependency * chore(dependencies): ⬆️ updates @actions/core dependency * refactor: 🔨 refactors build scripts * fix(action): 🐛 fixes action Adds type to error * docs(docs): 📝 updates documentation * ci(workflows): 👷 updates GitHub workflows * build(action): ⬆️ uses node16 for action * build(action): 🚨 configure method complexity for codeclimate * docs(docs): 📝 updates codeclimate related documentation * build(vscode): ➕ adds vscode extensions Removes brackets extension * chore(action): 📦 updates action package * ci(workflows): 🐛 fixes GitHub workflows * chore(dependencies): ⬆️ updates @octokit/rest dependency * chore: 🔖 bumps version * chore(dependencies): ⬆️ updates @actions/github dependency * docs: 📝 updates changelog * build: 🧑‍💻 adds pre-push hook Runs checks on push. * build: 🐛 fix codeclimate check to run as pre commit hook * chore: 🔖 prepares next release Prepares 0.0.14 release. * chore(docs): 📝 update license * build(dev dependencies): ⬆️ update dev dependencies * build(dependencies): 🔧 refactor build configuration Removes Codacy integration, adds markdownlint an remark. Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 74db0b2 commit 5381730

34 files changed

+845
-156
lines changed

.codacy.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.codeclimate.yml

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,35 @@
11
version: '2'
2+
checks:
3+
method-complexity:
4+
config:
5+
threshold: 7
26
plugins:
7+
duplication:
8+
enabled: true
39
editorconfig:
410
enabled: true
5-
tslint:
6-
enabled: false
711
eslint:
812
enabled: true
13+
channel: "eslint-7"
914
config:
1015
config: .eslintrc-cc.json
16+
extensions:
17+
- .ts
18+
- .js
19+
- .mjs
1120
fixme:
1221
enabled: true
1322
git-legal:
1423
enabled: true
15-
checks:
16-
method-complexity:
17-
config:
18-
threshold: 8
24+
markdownlint:
25+
enabled: true
26+
structure:
27+
enabled: true
1928
exclude_patterns:
2029
- '**/.github'
21-
- '**/.circleci'
30+
- '**/.husky'
2231
- '**/.vscode'
32+
- '**/fixtures'
2333
- '**/dist'
24-
- '**/temp'
2534
- '**/test'
26-
- '**/docs'
27-
- '**/node_modules/'
28-
- '**/fixtures'
29-
- '**/.husky'
30-
- '**/commitlint.config.js'
35+
- '**/node_modules'

.conventionalCommit.json

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"types": {
3+
"build": {
4+
"description": "Changes which affect CI configuration files and scripts"
5+
},
6+
"chore": {
7+
"description": "Changes which aren't user-facing"
8+
},
9+
"enh": {
10+
"description": "Changes which improve a feature"
11+
},
12+
"docs": {
13+
"description": "Changes which affect documentation"
14+
},
15+
"feat": {
16+
"description": "Changes which introduce a new feature"
17+
},
18+
"fix": {
19+
"description": "Changes which patch a bug"
20+
},
21+
"perf": {
22+
"description": "Changes which improve performance."
23+
},
24+
"refactor": {
25+
"description": "Changes which neither fix a bug nor add a feature"
26+
},
27+
"revert": {
28+
"description": "Changes which revert a previous commit"
29+
},
30+
"style": {
31+
"description": "Changes which don't affect code logic, such as white-spaces, formatting, missing semi-colons"
32+
},
33+
"test": {
34+
"description": "Changes which add missing tests or correct existing tests"
35+
}
36+
},
37+
"scopes": {
38+
"codeclimate": {
39+
"description": "Changes which affect Code Climate integration"
40+
},
41+
"github": {
42+
"description": "Changes which affect GitHub integration"
43+
},
44+
"release": {
45+
"description": "Changes which affect a release"
46+
},
47+
"vscode": {
48+
"description": "Changes which affect VisualStudio Code integration"
49+
}
50+
}
51+
}

.dictionary

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
CLI
2+
conventional-changelog-cli
3+
defaultProps
4+
displayName
5+
gregoranders
6+
localhost
7+
npm
8+
markdownlint
9+
propTypes
10+
sexualized
11+
socio-economic

.eslintignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
docs/
2+
CODE_OF_CONDUCT.md
3+
README.md
4+
SECURITY.md
5+
CHANGELOG.md
6+
LICENSE
7+
commitlint.config.js

.eslintrc-cc.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
{
22
"root": true,
33
"parser": "@typescript-eslint/parser",
4-
"plugins": ["prettier", "jest", "unicorn", "@typescript-eslint"],
4+
"plugins": ["prettier", "jest", "@typescript-eslint"],
55
"extends": [
66
"plugin:jest/recommended",
7-
"plugin:unicorn/recommended",
87
"plugin:prettier/recommended"
98
],
109
"parserOptions": {
@@ -19,6 +18,9 @@
1918
"jest": true
2019
},
2120
"rules": {
21+
"quotes": [
22+
2, "single", { "avoidEscape": true }
23+
],
2224
"@typescript-eslint/explicit-module-boundary-types": "off"
2325
},
2426
"settings": {}

.eslintrc.json

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,29 @@
11
{
22
"root": true,
33
"parser": "@typescript-eslint/parser",
4-
"plugins": ["prettier", "jest", "unicorn", "@typescript-eslint"],
4+
"plugins": ["@typescript-eslint", "jest", "prettier", "unicorn"],
55
"extends": [
6+
"plugin:@typescript-eslint/recommended",
67
"plugin:jest/recommended",
7-
"plugin:unicorn/recommended",
8-
"plugin:prettier/recommended"
8+
"plugin:prettier/recommended",
9+
"plugin:unicorn/recommended"
910
],
1011
"parserOptions": {
11-
"ecmaVersion": 2020,
12+
"ecmaVersion": "latest",
1213
"sourceType": "module",
13-
"ecmaFeatures": {}
14+
"ecmaFeatures": {
15+
}
1416
},
1517
"env": {
16-
"es2020": true,
17-
"es6": true,
18+
"es2022": true,
1819
"browser": false,
20+
"node": true,
1921
"jest": true
2022
},
2123
"rules": {
24+
"quotes": [
25+
2, "single", { "avoidEscape": true }
26+
],
2227
"@typescript-eslint/explicit-module-boundary-types": "off",
2328
"sort-imports": [
2429
"error",
@@ -30,5 +35,6 @@
3035
}
3136
]
3237
},
33-
"settings": {}
38+
"settings": {
39+
}
3440
}

.github/workflows/development.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,11 @@ jobs:
5151
if: matrix.os == 'ubuntu-latest'
5252
uses: paambaati/codeclimate-action@v3.0.0
5353
env:
54-
CC_TEST_REPORTER_ID: ${{ secrets.CODE_CLIMATE }}
54+
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
5555
with:
5656
coverageCommand: npm test
5757
coverageLocations: |
5858
./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
6559
- name: Publish Unit Test Results
6660
uses: EnricoMi/publish-unit-test-result-action/composite@v1
6761
with:

.github/workflows/feature.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,11 @@ jobs:
5151
if: matrix.os == 'ubuntu-latest'
5252
uses: paambaati/codeclimate-action@v3.0.0
5353
env:
54-
CC_TEST_REPORTER_ID: ${{ secrets.CODE_CLIMATE }}
54+
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
5555
with:
5656
coverageCommand: npm test
5757
coverageLocations: |
5858
./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
6559
- name: Publish Unit Test Results
6660
uses: EnricoMi/publish-unit-test-result-action/composite@v1
6761
with:

.github/workflows/master.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,11 @@ jobs:
5151
if: matrix.os == 'ubuntu-latest'
5252
uses: paambaati/codeclimate-action@v3.0.0
5353
env:
54-
CC_TEST_REPORTER_ID: ${{ secrets.CODE_CLIMATE }}
54+
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
5555
with:
5656
coverageCommand: npm test
5757
coverageLocations: |
5858
./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
6559
- name: Publish Unit Test Results
6660
uses: EnricoMi/publish-unit-test-result-action/composite@v1
6761
with:

0 commit comments

Comments
 (0)