git commit and npm publish flow, formatting commit messages with commitizen.
This is a fbi task. If you haven't installed fbi yet, use the following command to install.
$ npm i -g fbioryarn global add fbi
fbi v3.0+node v7.6+
- flow of
git add,git commit,git push,git tag,npm version major/minor/patch,npm publish, and changelog generation - formatting commit messages with commitizen
- version standard: Semantic Versioning
git commitandchangelogstyle: Angular commit style- commit message format:
type(scope): subject - commit types: cz-fbi
- changelog: only
new features, bug fixes, breaking changeswill show inCHANGELOG.md
- commit message format:
<type>(<scope>): <subject>
<body>
<footer>Install
$ fbi add https://github.com/fbi-templates/fbi-task-commit.gitRun
$ cd path/to/git/repository
$ fbi commitDemo
-
? type of change (required):
feat ✨ Introducing new features -
? affected scope (optional):
page -
? short description (required):
add a new page -
? longer description (optional):
\n - first \n - second \n - third -
? issue closed (optional):
#666 #999 -
? breaking change (optional):
some breaking changesresult:
feat(page): add a new page - first - second - third fixed #666, fixed #999 BREAKING CHANGE: some breaking changes
package.json
{
"name": "",
"version": "",
...
"cz-fbi": {
"types": [
{
"emoji": "✨",
"description": "Introducing new features",
"name": "feat"
},
...
],
"scopes": ["page", "api", ...]
}
}