feat: added husky and removed commitizen

This commit is contained in:
Brian Pooe 2023-06-16 13:35:27 +02:00
parent 261b3188af
commit eecc61a5f6
9 changed files with 3814 additions and 2680 deletions

3
.czrc
View file

@ -1,3 +0,0 @@
{
"path": "@commitlint/cz-commitlint"
}

View file

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

View file

@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
npx lint-staged
npx lint-staged --concurrent false --relative

View file

@ -1,5 +0,0 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
(exec < /dev/tty && node_modules/.bin/cz --hook) || true < /dev/null

View file

@ -1,4 +0,0 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
{CMD_TO_EXEC}

View file

@ -1,3 +0,0 @@
module.exports = {
extends: ['@commitlint/config-conventional', '@commitlint/config-nx-scopes']
};

View file

@ -1,5 +1,6 @@
module.exports = {
'{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 test --uncommitted',
'nx format:write --uncommitted --libs-and-apps'

6458
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -18,10 +18,6 @@
},
"devDependencies": {
"@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",
"@nestjs/platform-express": "^9.1.1",
"@nestjs/schematics": "^9.1.0",
@ -39,11 +35,10 @@
"@types/node": "~18.7.1",
"@typescript-eslint/eslint-plugin": "^5.58.0",
"@typescript-eslint/parser": "^5.58.0",
"commitizen": "^4.3.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "~8.15.0",
"eslint-config-prettier": "8.1.0",
"husky": "^8.0.0",
"husky": "^8.0.3",
"jest": "^29.4.1",
"jest-environment-node": "^29.4.1",
"lint-staged": "^13.2.2",
@ -55,10 +50,5 @@
"ts-jest": "^29.1.0",
"ts-node": "10.9.1",
"typescript": "~5.0.2"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}