Automatically generate a new version and changelog by parsing angular style git commit messages.
No need for installation, logchange can just be executed through npx.
Add npx logchange as a script to your package.json
{
...
"scripts": {
...
"logchange": "npx logchange"
}
}$ npm install -g logchange$ npm install logchangeAdd logchange as a script to your package.json
{
...
"scripts": {
...
"logchange": "logchange"
}
}feat(Scope): message
BREAKING CHANGE:
Some breaking change here.
This will increment the MAJOR version.
feat(Scope): message
This will increment the MINOR version.
fix(Scope): message
This will increment the PATCH version.
Usage: version [options]
Options:
-h, --help output usage information
-V, --version output the version number
-j, --json just output a version as json
-s, --stdout output to stdout instead of file
-f, --format <format> format to output in [markdown, html]
-o, --file <file> changelog file to read/write
- Write your code
- Commit your code using angular style commits
- Test your code
- Run
npx logchange(node 8.2.0+) / Runnpm run logchange(locally) / Runlogchange(globally) - Commit your
package.jsonandCHANGELOG.mdwith achore(Version): updating version and changelogmessage. - message doesn't really matter - as long as its achoreotherwise, it may increment your version the next time you runnpx logchange
- fix issue with multiple version being bumped per execution.
- rewrite to support testing/coverage
- rework options to be a bit more intuitive
- add
logchange scopesto iterate over the git log and return all the scopes already used - create contributors template, automatically increment number of commits against each contributor
- add
logchange currentto output the current version - add
logchange nextto output what the next version will be - format the scopes to all start with a capital letter, regardless of what case was used in the commit