feat: added husky and removed commitizen
This commit is contained in:
parent
261b3188af
commit
eecc61a5f6
9 changed files with 3814 additions and 2680 deletions
3
.czrc
3
.czrc
|
|
@ -1,3 +0,0 @@
|
||||||
{
|
|
||||||
"path": "@commitlint/cz-commitlint"
|
|
||||||
}
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
#!/usr/bin/env sh
|
|
||||||
. "$(dirname -- "$0")/_/husky.sh"
|
|
||||||
|
|
||||||
npx --no-install commitlint --edit "$1"
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
. "$(dirname -- "$0")/_/husky.sh"
|
. "$(dirname -- "$0")/_/husky.sh"
|
||||||
|
|
||||||
npx lint-staged
|
npx lint-staged --concurrent false --relative
|
||||||
|
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
#!/usr/bin/env sh
|
|
||||||
. "$(dirname -- "$0")/_/husky.sh"
|
|
||||||
|
|
||||||
|
|
||||||
(exec < /dev/tty && node_modules/.bin/cz --hook) || true < /dev/null
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
#!/usr/bin/env sh
|
|
||||||
. "$(dirname -- "$0")/_/husky.sh"
|
|
||||||
|
|
||||||
{CMD_TO_EXEC}
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
module.exports = {
|
|
||||||
extends: ['@commitlint/config-conventional', '@commitlint/config-nx-scopes']
|
|
||||||
};
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
'{libs,tools,.github}/**/*.{ts,js,json,md,html,css,scss,yml,yaml}': [
|
'{libs,tools,.github}/**/*.{ts,js,json,md,html,css,scss,yml,yaml}': [
|
||||||
|
'nx affected --target typecheck --uncommitted',
|
||||||
'nx affected --target lint --uncommitted --fix true',
|
'nx affected --target lint --uncommitted --fix true',
|
||||||
'nx affected --target test --uncommitted',
|
'nx affected --target test --uncommitted',
|
||||||
'nx format:write --uncommitted --libs-and-apps'
|
'nx format:write --uncommitted --libs-and-apps'
|
||||||
|
|
|
||||||
6458
package-lock.json
generated
6458
package-lock.json
generated
File diff suppressed because it is too large
Load diff
12
package.json
12
package.json
|
|
@ -18,10 +18,6 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@automock/jest": "^1.2.0",
|
"@automock/jest": "^1.2.0",
|
||||||
"@commitlint/cli": "^17.6.5",
|
|
||||||
"@commitlint/config-conventional": "^17.6.5",
|
|
||||||
"@commitlint/config-nx-scopes": "^17.6.4",
|
|
||||||
"@commitlint/cz-commitlint": "^17.5.0",
|
|
||||||
"@golevelup/ts-jest": "^0.3.7",
|
"@golevelup/ts-jest": "^0.3.7",
|
||||||
"@nestjs/platform-express": "^9.1.1",
|
"@nestjs/platform-express": "^9.1.1",
|
||||||
"@nestjs/schematics": "^9.1.0",
|
"@nestjs/schematics": "^9.1.0",
|
||||||
|
|
@ -39,11 +35,10 @@
|
||||||
"@types/node": "~18.7.1",
|
"@types/node": "~18.7.1",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.58.0",
|
"@typescript-eslint/eslint-plugin": "^5.58.0",
|
||||||
"@typescript-eslint/parser": "^5.58.0",
|
"@typescript-eslint/parser": "^5.58.0",
|
||||||
"commitizen": "^4.3.0",
|
|
||||||
"cz-conventional-changelog": "^3.3.0",
|
"cz-conventional-changelog": "^3.3.0",
|
||||||
"eslint": "~8.15.0",
|
"eslint": "~8.15.0",
|
||||||
"eslint-config-prettier": "8.1.0",
|
"eslint-config-prettier": "8.1.0",
|
||||||
"husky": "^8.0.0",
|
"husky": "^8.0.3",
|
||||||
"jest": "^29.4.1",
|
"jest": "^29.4.1",
|
||||||
"jest-environment-node": "^29.4.1",
|
"jest-environment-node": "^29.4.1",
|
||||||
"lint-staged": "^13.2.2",
|
"lint-staged": "^13.2.2",
|
||||||
|
|
@ -55,10 +50,5 @@
|
||||||
"ts-jest": "^29.1.0",
|
"ts-jest": "^29.1.0",
|
||||||
"ts-node": "10.9.1",
|
"ts-node": "10.9.1",
|
||||||
"typescript": "~5.0.2"
|
"typescript": "~5.0.2"
|
||||||
},
|
|
||||||
"config": {
|
|
||||||
"commitizen": {
|
|
||||||
"path": "./node_modules/cz-conventional-changelog"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue