chore: add husky with commitlint

This commit is contained in:
janniks
2023-01-05 00:12:35 +01:00
committed by janniks
parent 0c62277c41
commit 09e305f87f
3 changed files with 2352 additions and 479 deletions

4
.github/.husky/commit-msg vendored Executable file
View File

@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
npx @commitlint/cli --extends @commitlint/config-conventional --edit "$1"

2809
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -21,10 +21,13 @@
"madge": "madge --circular --extensions ts --exclude '(triplesec|d).ts' packages/",
"pack": "lerna run pack",
"test": "lerna run test",
"typecheck": "lerna run typecheck --parallel --no-bail --stream"
"typecheck": "lerna run typecheck --parallel --no-bail --stream",
"prepare": "husky install .github/.husky"
},
"devDependencies": {
"@changesets/cli": "^2.23.0",
"@commitlint/cli": "^17.4.0",
"@commitlint/config-conventional": "^17.4.0",
"@janniks/typedoc-theme-stacks": "^1.2.3",
"@stacks/eslint-config": "^1.2.0",
"@stacks/prettier-config": "^0.0.10",
@@ -34,16 +37,17 @@
"@typescript-eslint/parser": "^5.11.0",
"assert": "^2.0.0",
"conventional-changelog-conventionalcommits": "^5.0.0",
"esbuild-loader": "^2.18.0",
"esbuild": "^0.14.23",
"esbuild-loader": "^2.18.0",
"eslint": "^8.8.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-node": "^11.1.0",
"eslint": "^8.8.0",
"husky": "^8.0.3",
"inspectpack": "^4.7.1",
"jest": "^28.1.3",
"jest-fetch-mock": "^3.0.3",
"jest-module-name-mapper": "^0.1.5",
"jest": "^28.1.3",
"lerna": "^5.5.2",
"madge": "^5.0.1",
"path-browserify": "^1.0.1",
@@ -51,12 +55,12 @@
"rimraf": "^3.0.2",
"stream-http": "^3.2.0",
"ts-jest": "^28.0.8",
"typedoc-plugin-replace-text": "^2.1.0",
"typedoc": "^0.23.20",
"typedoc-plugin-replace-text": "^2.1.0",
"typescript": "^4.2.4",
"webpack": "^5.36.1",
"webpack-bundle-analyzer": "^4.5.0",
"webpack-cli": "^4.10.0",
"webpack": "^5.36.1"
"webpack-cli": "^4.10.0"
},
"overrides": {
"ajv": "6.12.3",