@bassist/commit
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "@bassist/commit", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Simple Commit Lint by @chengpeiquan .", | ||
@@ -5,0 +5,0 @@ "author": "chengpeiquan <chengpeiquan@chengpeiquan.com>", |
@@ -26,9 +26,32 @@ # @bassist/commit | ||
1. Initialize Husky configuration according to [getting-started](https://typicode.github.io/husky/getting-started.html) documentation | ||
1. Initialize Husky configuration according to [getting-started](https://typicode.github.io/husky/get-started.html) documentation | ||
```bash | ||
pnpm add -D husky | ||
pnpm exec husky init | ||
``` | ||
2. Run the following command on the command line to add the check script to the `commit-msg` hook: | ||
```bash | ||
npx husky set .husky/commit-msg "npx @bassist/commit $1" | ||
npx husky set .husky/commit-msg 'npx @bassist/commit "$1"' | ||
``` | ||
If this package is installed locally (e.g. `devDependencies` ), it can also be called through the `commit` alias. | ||
```bash | ||
pnpm add -D @bassist/commit | ||
npx husky set .husky/commit-msg 'pnpm exec commit "$1"' | ||
``` | ||
## FAQ | ||
- Q: hook was ignored because it's not set as executable | ||
A: solve it with the command below (See: [#1177](https://github.com/typicode/husky/issues/1177)). | ||
```bash | ||
chmod ug+x .husky/* | ||
``` | ||
## Git Commit Message Convention | ||
@@ -35,0 +58,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
171
1
8961
4
34