node CLI replacement for git commit command with pre-commit linting and post-commit auto-versioning
npm install post-commit-auto-versioningnpm install post-commit-auto-versioning -g`
Pre-commit:
Use `committing` instead of `git commit`
ex: `committing -m "message"`
1: Usage with your pre-commit lint script:
ex: `committing -m "message" -l "npm run lintScript && npm run formatScript"`
Otherwise pre-commit preset can be stored into package.json
`
{
...
"post-commit-auto-versioning": {
"pre-commit": "npm run formatting"
}
}
`
2: Pre-commit versioning:
`committing -m "message" --patch`
`committing -m "message" --minor`
`committing -m "message" --major`
Use it to upgrade your package.json version after each commit.
Pre-push versioning:
Install prepush file once with `prepush-install`
Use normal `git push`. You will be asked a version update before every push.
Can also accept all other commit default parameters
`
[--dry-run] [(-c | -C | --fixup | --squash) ]
[-a | --interactive | --patch] [-s] [-v] [-u] [--amend]
[-F | -m ] [--reset-author] [--allow-empty]
[--allow-empty-message] [--no-verify] [-e] [--author=]
[--date=] [--cleanup=] [--[no-]status]
[-i | -o] [-S[]] [--] [ā¦ā]
``