Sudoo-Version

Build Status codecov npm version downloads

:hash: Version Number Controller

Install

Install globally

yarn global add @sudoo/version
# Or
npm install @sudoo/version -g

Install in project scope

yarn add @sudoo/version --dev
# Or
npm install @sudoo/version --save-dev

Config

Add the following file to your project folder.

{
    "version": "1.0.0"
}

Add next version indicator if auto update feature is used.

{
    "version": "1.0.0",
    "next": "major"
}

Usage

Run the following script to get your version config file updated.

Note: change version command to npx version or ./node_modules/.bin/version if you installed the @sudoo/version package in project scope.

get:
	version get example/version.json

major:
	version major example/version.json

minor:
	version minor example/version.json

patch:
	version patch example/version.json

auto:
	version auto example/version.json