git-commit-versioner
v1.0.1
Published
CLI tool to update version numbers
Downloads
17
Readme
Git Commit Versioner (gcv)
Lazy to update your version on package.json (and the lock file)? This repository will help you to do it fast!
gcv
is a CLI tool designed to automate the version bumping process in your package.json
and package-lock.json
files. It allows you to easily update the patch, minor, or major version of your project and commit the changes to Git.
Features
- Patch version bump (0.0.x)
- Minor version bump (0.x.0)
- Major version bump (x.0.0)
- Automatically stages and commits the version update to Git.
Installation
To install gcv
globally on your system, simply run the following command:
npm install -g git-commit-versioner
Options
To see different options run: gcv -h
l, low - Update patch version (0.0.x)
m, medium - Update minor version (0.x.0)
h, high - Update major version (x.0.0)
-h - Show help
Examples
Update Patch Version: gcv l
This will update the version to the next patch version (e.g., 1.0.0 -> 1.0.1).
Update Minor Version: gcv m
This will update the version to the next minor version (e.g., 1.0.0 -> 1.1.0).
Update Major Version: gcv h
This will update the version to the next major version (e.g., 1.0.0 -> 2.0.0).
Development
If you'd like to modify the tool or contribute to its development, you can clone the repository:
git clone <repositoy_url>
cd <repository_folder>