A CLI tool for versioning according to SemVer
Support config file
- Cargo.toml (Cargo)
- package.json (npm, yarn)
- pyproject.toml (Poetry)
- manifest.json
Support OS
- Homebrew (mac)
- Linuxbrew (Linux, WSL)
Install
brew install --HEAD fuyutarow/tap/version-make
Clean uninstall
brew uninstall fuyutarow/tap/version-make
brew untap fuyutarow/tap
semver: X.Y.Z-a+b (Major.Minor.Patch-pre+build)
Print the current version of the configuration file as standard output.
$ version-make show samples/pacakge.json
0.1.1-hot+20210425
Output only X.Y.Z part of the current version to the standard output
$ version-make show --core samples/pacakge.json
0.1.1-hot+20210425
Standard output of the configuration file for major version increments. X+1.y.z
$ version-make up -x samples/package.json
{
"name": "node-project",
"version": "0.1.1-hot+20210425",
"private": true
}
Increment Patch version: x.y.Z+1 and replace new file.
$ version-make up -zr samples/package.json
Set pre and build: x.y.z -> x.y.z-alpha+beta.
$ version-make up --pre preview --build rc2 samples/package.json
{
"name": "node-project",
"version": "0.1.2-preview+rc2",
"private": true
}