Skip to content

Commit ebef2a6

Browse files
Refactor build configuration (#203)
* chore(release): prepare next release * 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 @types/node from 14.0.14 to 14.0.18 Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.0.14 to 14.0.18. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) 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/node from 14.0.18 to 14.0.19 Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.0.18 to 14.0.19. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) Signed-off-by: dependabot[bot] <support@github.com> * npm: bump @types/node from 14.0.19 to 14.0.20 Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.0.19 to 14.0.20. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) Signed-off-by: dependabot[bot] <support@github.com> * refactor(build): use correct env variable * refactor(dependencies): dependencies check weekly * npm: bump @types/node from 14.0.20 to 14.0.23 Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.0.20 to 14.0.23. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) 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-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 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> * chore(dependencies): update dependencies * chore(quality): add codacy config * chore(quality): add code climate * refactor(vscode): refactor visual code config * refactor(docs): refactor documentation * refactor(build): refactor Github CI * chore(git): add test path to ignored files * chore(release): 0.0.8 Release * docs(CHANGELOG): update changelog * docs(README): add codacy badge * chore(quality): add codacy CI task * chore(release): 0.0.9 * docs(CHANGELOG): update changelog * refactor(docs): remove email * chore(release): 0.0.10 * docs(CHANGELOG): update * refactor(quality): fix unicorn issue * chore(dependencies): update dependencies * chore(dependencies): update dev dependencies * chore(dependencies): update dev dependencies * chore(dependencies): update dependnencies * chore(dependencies): update dev dependencies * bug(build): exclude build from ignored files * chore(release): bump version * chore(CHANGELOG): update changelog * chore(dependencies): update dependnencies * chore(codequality): renamed variables * chore(dist): updated dist * chore(release): prepare next release * chore(docs): updated CHANGELOG * chore(docs): update SECURITY * chore(docs): update README * chore(docs): update CHANGELOG * chore(release): dump version * fix(vscode): 🔧 Removes extension Removes brackets extension as it is now provided by code itself * chore(vscode): 🔧 Adds vscode scope * chore(dependencies): ⬆️ Updates dependencies Updates dependencies and adjusts code accordingly * chore(vscode): 🔧 Adds vscode scope * chore(dependencies): 📦 Updates action * fix(dependencies): 🐛 Downgrades @types/node * fix(ci): 💚 Fixes windows ci build * fix(ci): 💚 Fixes windows ci build * fix(ci): 💚 Fixes windows ci build * fix(ci): 💚 Fixes windows ci build * fix(ci): 💚 Fixes windows ci build * revert(dependencies): ⬇️ Reverts dependencies update Revert dependencies update to fix build * chore(dependencies): ⬆️ Updates dependencies * chore(dependencies): ⬆️ Updates ncc dependency Replaces @zeit/ncc with @vercel/ncc and updates to latest version * chore(dependencies): ⬆️ Updates eslint dependencies * revert(dependencies): ⬆️ Reverts eslint dependencies Reverts eslint dependencies update due to CI build error on windows * chore(dependencies): ⬆️ Updates husky dependency * revert(dependencies): ⏪ Revert husky dependency * chore(dependencies): ⬆️ Updates jest dependencies * chore(dependencies): ➖ Removes ts-node dependency * chore(dependencies): ➖ Removes ts-node dependency * chore(dependencies): ⬆️ Updates typescript dependency * chore(dependencies): ⬆️ Updates prettier dependency * chore(dependencies): ⬆️ Updates lint-staged dependency * chore(dependencies): ⬆️ Updates husky dependency * chore(dependencies): ⬆️ Updates eslint dependencies * chore(vscode): 🔧 Adds scopes * ci(workflows): 👷 Uses NodeJS 16 Updates actions used in workflow and updates used NodeJS to 16.x * chore(dependencies): ➖ Removes @types dependencies Refactors scripts * refactor(action): ⬆️ Action runs with NodeJS 16 * docs(docs): 📝 Updates codeclimat related documentation * chore(action): 📦 Updates action * ci(workflows): 🐛 Fixes build Removes caching due to missing of package-lock.json * ci(workflows): :⬆️ Updates main workflow * style: 🧑‍💻 adds conventional commit integration * refactor(action): 🔥 removes semver typing Replaces semver typing with provided one * docs(docs): 📝 updates docs * ci(workflows): 👷 updates GitHub workflows * ci(workflows): 👷 adds CodeQL workflow * ci(workflows): 👷 adds feature branch workflow * chore(action): 📈 fixes codacy issue * docs(docs): 🔖 0.0.13 release * chore: 🔖 bumps version to 0.0.14 Prepare next release * build: 🐛 adds commitlink config * build: 🧑‍💻 run checks in pre push hook * build(dev dependencies): ⬆️ update dev dependencies * build(dependencies): 🔧 refactor build configuration Removes Codacy integration, adds markdownlint an remark. * docs(docs): 📝 update docs Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 25f0f14 commit ebef2a6

34 files changed

Lines changed: 841 additions & 153 deletions

.codacy.yml

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

.codeclimate.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,31 @@
11
version: '2'
22
plugins:
3+
duplication:
4+
enabled: true
35
editorconfig:
46
enabled: true
5-
tslint:
6-
enabled: false
77
eslint:
88
enabled: true
9+
channel: "eslint-7"
910
config:
1011
config: .eslintrc-cc.json
12+
extensions:
13+
- .ts
14+
- .js
15+
- .mjs
1116
fixme:
1217
enabled: true
1318
git-legal:
1419
enabled: true
20+
markdownlint:
21+
enabled: true
22+
structure:
23+
enabled: true
1524
exclude_patterns:
1625
- '**/.github'
17-
- '**/.circleci'
26+
- '**/.husky'
1827
- '**/.vscode'
28+
- '**/fixtures'
1929
- '**/dist'
20-
- '**/temp'
2130
- '**/test'
22-
- '**/docs'
23-
- '**/node_modules/'
24-
- '**/fixtures'
25-
- '**/.husky'
26-
- '**/commitlint.config.js'
31+
- '**/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: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,6 @@ jobs:
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: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,6 @@ jobs:
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: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,6 @@ jobs:
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)