0.1.0 • Published 1 year ago
verify-commit-msg v0.1.0
Git Commit Message Convention
This is adapted from Commit convention.
Installation
npm i verify-commit-msg -DUsage with git-scm-hooks
  npm pkg set scripts.verify-commit=verify-commit-msg
  npm pkg set git-hooks.commit-msg="npm run verify-commit"Usage with husky
Config .husky/commit-msg
- Bash
 
npm pkg set scripts.verify-commit=verify-commit-msg
npx husky add .husky/commit-msg "npm run verify-commit"- Or manually update 
.husky/commit-msg 
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
npm run verify-commit