git-commit-versioner

1.0.1 • Public • Published

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>

Readme

Keywords

none

Package Sidebar

Install

npm i git-commit-versioner

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

5.78 kB

Total Files

7

Last publish

Collaborators

  • datascientest-developer