Features:
- Shell alias
feat
: helper to commit a featurefeat(scope): <message>
orfeat: <message>
- Shell alias
fix
: helper to commit a fixfix(scope): <message>
orfix: <message>
- Shell alias
refactor
: helper to commit a refactorrefactor(scope): <message>
orrefactor: <message>
- Auto detect scope from change files using the
.mmrc.json
file
Example mmrc file:
{
"scopes": [
{
"name": "user",
"match": "$CWD/apps/user/**"
},
{
"name": "products",
"match": "$CWD/apps/products/**"
},
{
"name": "settings",
"match": "$CWD/configs/**"
}
]
}
npm install -g @jondotsoy/commit-help
and run add the next line to your shell config (.alias, .bashrc, .zshrc, etc):
eval $(commit-help -)
You can use wthout install. Just add into your shell config:
eval $(npx @jondotsoy/commit-help -)
⚠️ This can delay to the shell startup.