Skip to content

Commit

Permalink
Refactor build configuration (#203)
Browse files Browse the repository at this point in the history
* 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] <[email protected]>

* 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] <[email protected]>

* 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] <[email protected]>

* 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] <[email protected]>

* 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] <[email protected]>

* 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] <[email protected]>

* 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] <[email protected]>

* 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] <[email protected]>

* 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] <[email protected]>

* 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] <[email protected]>

* 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] <[email protected]>

* 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] <[email protected]>

* 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] <[email protected]>

* 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] <[email protected]>

* 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] <[email protected]>

* 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] <[email protected]>

* 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>
  • Loading branch information
gregoranders and dependabot[bot] authored Feb 25, 2022
1 parent 25f0f14 commit ebef2a6
Show file tree
Hide file tree
Showing 34 changed files with 841 additions and 153 deletions.
22 changes: 0 additions & 22 deletions .codacy.yml

This file was deleted.

23 changes: 14 additions & 9 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,31 @@
version: '2'
plugins:
duplication:
enabled: true
editorconfig:
enabled: true
tslint:
enabled: false
eslint:
enabled: true
channel: "eslint-7"
config:
config: .eslintrc-cc.json
extensions:
- .ts
- .js
- .mjs
fixme:
enabled: true
git-legal:
enabled: true
markdownlint:
enabled: true
structure:
enabled: true
exclude_patterns:
- '**/.github'
- '**/.circleci'
- '**/.husky'
- '**/.vscode'
- '**/fixtures'
- '**/dist'
- '**/temp'
- '**/test'
- '**/docs'
- '**/node_modules/'
- '**/fixtures'
- '**/.husky'
- '**/commitlint.config.js'
- '**/node_modules'
51 changes: 51 additions & 0 deletions .conventionalCommit.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"types": {
"build": {
"description": "Changes which affect CI configuration files and scripts"
},
"chore": {
"description": "Changes which aren't user-facing"
},
"enh": {
"description": "Changes which improve a feature"
},
"docs": {
"description": "Changes which affect documentation"
},
"feat": {
"description": "Changes which introduce a new feature"
},
"fix": {
"description": "Changes which patch a bug"
},
"perf": {
"description": "Changes which improve performance."
},
"refactor": {
"description": "Changes which neither fix a bug nor add a feature"
},
"revert": {
"description": "Changes which revert a previous commit"
},
"style": {
"description": "Changes which don't affect code logic, such as white-spaces, formatting, missing semi-colons"
},
"test": {
"description": "Changes which add missing tests or correct existing tests"
}
},
"scopes": {
"codeclimate": {
"description": "Changes which affect Code Climate integration"
},
"github": {
"description": "Changes which affect GitHub integration"
},
"release": {
"description": "Changes which affect a release"
},
"vscode": {
"description": "Changes which affect VisualStudio Code integration"
}
}
}
11 changes: 11 additions & 0 deletions .dictionary
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
CLI
conventional-changelog-cli
defaultProps
displayName
gregoranders
localhost
npm
markdownlint
propTypes
sexualized
socio-economic
7 changes: 7 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
docs/
CODE_OF_CONDUCT.md
README.md
SECURITY.md
CHANGELOG.md
LICENSE
commitlint.config.js
6 changes: 4 additions & 2 deletions .eslintrc-cc.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["prettier", "jest", "unicorn", "@typescript-eslint"],
"plugins": ["prettier", "jest", "@typescript-eslint"],
"extends": [
"plugin:jest/recommended",
"plugin:unicorn/recommended",
"plugin:prettier/recommended"
],
"parserOptions": {
Expand All @@ -19,6 +18,9 @@
"jest": true
},
"rules": {
"quotes": [
2, "single", { "avoidEscape": true }
],
"@typescript-eslint/explicit-module-boundary-types": "off"
},
"settings": {}
Expand Down
22 changes: 14 additions & 8 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,29 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["prettier", "jest", "unicorn", "@typescript-eslint"],
"plugins": ["@typescript-eslint", "jest", "prettier", "unicorn"],
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:jest/recommended",
"plugin:unicorn/recommended",
"plugin:prettier/recommended"
"plugin:prettier/recommended",
"plugin:unicorn/recommended"
],
"parserOptions": {
"ecmaVersion": 2020,
"ecmaVersion": "latest",
"sourceType": "module",
"ecmaFeatures": {}
"ecmaFeatures": {
}
},
"env": {
"es2020": true,
"es6": true,
"es2022": true,
"browser": false,
"node": true,
"jest": true
},
"rules": {
"quotes": [
2, "single", { "avoidEscape": true }
],
"@typescript-eslint/explicit-module-boundary-types": "off",
"sort-imports": [
"error",
Expand All @@ -30,5 +35,6 @@
}
]
},
"settings": {}
"settings": {
}
}
6 changes: 0 additions & 6 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,6 @@ jobs:
coverageCommand: npm test
coverageLocations: |
./test/coverage/lcov.info:lcov
- name: run codacy-coverage-reporter
if: matrix.os == 'ubuntu-latest'
uses: codacy/codacy-coverage-reporter-action@master
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: ./test/coverage/lcov.info
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action/composite@v1
with:
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/feature.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,6 @@ jobs:
coverageCommand: npm test
coverageLocations: |
./test/coverage/lcov.info:lcov
- name: run codacy-coverage-reporter
if: matrix.os == 'ubuntu-latest'
uses: codacy/codacy-coverage-reporter-action@master
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: ./test/coverage/lcov.info
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action/composite@v1
with:
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,6 @@ jobs:
coverageCommand: npm test
coverageLocations: |
./test/coverage/lcov.info:lcov
- name: run codacy-coverage-reporter
if: matrix.os == 'ubuntu-latest'
uses: codacy/codacy-coverage-reporter-action@master
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: ./test/coverage/lcov.info
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action/composite@v1
with:
Expand Down
68 changes: 68 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Release CI

on:
release:
types:
- edited

env:
CI: true
GITHUB_BRANCH: ${{ github.ref }}
GITHUB_HEAD_REF: ${{ github.head_ref }}
GITHUB_BASE_REF: ${{ github.base_ref }}
GITHUB_COMMIT: ${{ github.sha }}

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
node-version: [16.x]

steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org/'
- name: nodejs project information
id: projectinfo
uses: gregoranders/nodejs-project-info@master
- name: npm install
run: |
npm install
- name: npm test
run: |
npm test
- name: npm run build
run: |
npm run build
- uses: actions/setup-node@v2
with:
registry-url: 'https://npm.pkg.github.com'
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: upload index.js
id: uploadmain
uses: gregoranders/nodejs-upload-asset@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
id: ${{ steps.createrelease.outputs.id }}
path: dist/index.js
name: index.js
- name: upload index.d.ts
id: uploadtype
uses: gregoranders/nodejs-upload-asset@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
id: ${{ steps.createrelease.outputs.id }}
path: dist/index.d.ts
name: index.d.ts
4 changes: 3 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

lint-staged && npm test && npm run build
lint-staged
npm test
npm run build
9 changes: 9 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run clear
npm install
npm test
npm run build
npm run lint
npm run codeclimate
3 changes: 3 additions & 0 deletions .markdownlintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/**
CHANGELOG.md
LICENSE
Loading

0 comments on commit ebef2a6

Please sign in to comment.