mirror of
https://github.com/anidl/multi-downloader-nx.git
synced 2026-01-11 12:00:22 +00:00
chore: add husky for cleaner commits
This commit is contained in:
parent
88e06bbf6e
commit
289265652e
6 changed files with 622 additions and 30 deletions
6
.commitlintrc.json
Normal file
6
.commitlintrc.json
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"extends": ["@commitlint/config-conventional"],
|
||||
"rules": {
|
||||
"type-enum": [2, "always", ["ci", "chore", "docs", "ticket", "feat", "fix", "perf", "refactor", "revert", "style"]]
|
||||
}
|
||||
}
|
||||
1
.husky/commit-msg
Normal file
1
.husky/commit-msg
Normal file
|
|
@ -0,0 +1 @@
|
|||
npx commitlint --edit .git/COMMIT_EDITMSG
|
||||
1
.husky/pre-commit
Normal file
1
.husky/pre-commit
Normal file
|
|
@ -0,0 +1 @@
|
|||
pnpm prettier && pnpm eslint && npx tsc
|
||||
BIN
commitlint.config.js
Normal file
BIN
commitlint.config.js
Normal file
Binary file not shown.
|
|
@ -58,6 +58,8 @@
|
|||
"yaml": "^2.8.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "^20.1.0",
|
||||
"@commitlint/config-conventional": "^20.0.0",
|
||||
"@eslint/js": "^9.39.1",
|
||||
"@types/express": "^5.0.5",
|
||||
"@types/ffprobe": "^1.1.8",
|
||||
|
|
@ -70,6 +72,7 @@
|
|||
"esbuild": "0.26.0",
|
||||
"eslint": "^9.39.1",
|
||||
"eslint-config-prettier": "^10.1.8",
|
||||
"husky": "^9.1.7",
|
||||
"prettier": "^3.7.1",
|
||||
"removeNPMAbsolutePaths": "^3.0.1",
|
||||
"ts-node": "^10.9.2",
|
||||
|
|
@ -112,6 +115,7 @@
|
|||
"test-macos-x64": "pnpm run pretest && cd lib && node modules/build macos-x64",
|
||||
"test-windows-arm64": "pnpm run pretest && cd lib && node modules/build windows-arm64",
|
||||
"test-linux-arm64": "pnpm run pretest && cd lib && node modules/build linuxstatic-arm64 && node modules/build alpine-x64",
|
||||
"test-macos-arm64": "pnpm run pretest && cd lib && node modules/build macos-arm64"
|
||||
"test-macos-arm64": "pnpm run pretest && cd lib && node modules/build macos-arm64",
|
||||
"prepare": "husky"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
638
pnpm-lock.yaml
638
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue