chore: add commitizen scripts with conventional config

This commit is contained in:
Nicolas Meienberger 2022-08-24 11:37:18 +02:00
parent c86641b04f
commit 51fb20c16e
4 changed files with 1084 additions and 1 deletions

View File

@ -38,4 +38,7 @@ jobs:
run: pnpm install
- name: Run global tests
run: pnpm test
run: pnpm test
- name: Run linter
run: pnpm run lint

3
commitlint.config.js Normal file
View File

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

View File

@ -4,6 +4,7 @@
"description": "",
"main": "",
"scripts": {
"commit": "git-cz",
"lint": "eslint . --ext .json",
"test": "jest",
"prepare": "husky install"
@ -19,9 +20,13 @@
},
"homepage": "https://github.com/meienberger/runtipi-appstore#readme",
"devDependencies": {
"@commitlint/cli": "^17.0.3",
"@commitlint/config-conventional": "^17.0.3",
"@commitlint/cz-commitlint": "^17.0.3",
"@types/jest": "^28.1.6",
"@types/js-yaml": "^4.0.5",
"@types/node": "^18.6.2",
"commitizen": "^4.2.5",
"eslint": "^8.22.0",
"eslint-plugin-json-schema-validator": "^4.0.1",
"eslint-plugin-jsonc": "^2.4.0",
@ -30,5 +35,10 @@
"js-yaml": "^4.1.0",
"ts-jest": "^28.0.7",
"typescript": "^4.7.4"
},
"config": {
"commitizen": {
"path": "@commitlint/cz-commitlint"
}
}
}

File diff suppressed because it is too large Load Diff