mirror of
https://github.com/pockethost/pockethost.git
synced 2025-06-04 13:16:41 +00:00
chore(root): add commitlint configuration and husky pre-commit hook
This commit is contained in:
parent
dc9f332aa7
commit
f0f7059886
1
.husky/commit-msg
Normal file
1
.husky/commit-msg
Normal file
@ -0,0 +1 @@
|
||||
npx --no -- commitlint --edit $1
|
0
.husky/pre-commit
Normal file
0
.husky/pre-commit
Normal file
11
commitlint.config.cjs
Normal file
11
commitlint.config.cjs
Normal file
@ -0,0 +1,11 @@
|
||||
module.exports = {
|
||||
extends: ['@commitlint/config-conventional'],
|
||||
rules: {
|
||||
'scope-enum': [
|
||||
2,
|
||||
'always',
|
||||
['root', 'dashboard', 'lander', 'superadmin', 'pockethost'],
|
||||
],
|
||||
'scope-empty': [2, 'never'],
|
||||
},
|
||||
}
|
@ -30,7 +30,8 @@
|
||||
"prod:cli": "tsx ./src/cli/index.ts",
|
||||
"plop": "plop --no-progress",
|
||||
"nofile": "cat /proc/sys/fs/file-nr",
|
||||
"mail": "tsx ./src/cli/sendmail.ts"
|
||||
"mail": "tsx ./src/cli/sendmail.ts",
|
||||
"prepare": "husky"
|
||||
},
|
||||
"prettier": {
|
||||
"semi": false,
|
||||
@ -93,6 +94,8 @@
|
||||
"winston-syslog": "^2.7.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "^19.3.0",
|
||||
"@commitlint/config-conventional": "^19.2.2",
|
||||
"@swc/cli": "^0.1.62",
|
||||
"@swc/core": "^1.3.95",
|
||||
"@types/bootstrap": "^5.2.8",
|
||||
@ -128,6 +131,7 @@
|
||||
"esbuild-node-externals": "^1.13.0",
|
||||
"express": "^4.18.2",
|
||||
"http-proxy-middleware": "^2.0.6",
|
||||
"husky": "^9.0.11",
|
||||
"inquirer": "^9.2.15",
|
||||
"ip-cidr": "^3.1.0",
|
||||
"js-yaml": "^4.1.0",
|
||||
|
537
pnpm-lock.yaml
generated
537
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user