@jondotsoy/commit-help
v0.1.12
Published
[](https://github.com/JonDotsoy/commit-help/actions/workflows/npm_publish.yml)
Downloads
16
Readme
Commit-Help
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/**"
}
]
}
How to use
How to install
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.