nerdial / standard-versioning
There is no license information available for the latest version (v0.6.3) of this package.
v0.6.3
2019-06-14 11:05 UTC
Requires
- guzzlehttp/guzzle: ^6.3
- symfony/console: ^4.2
- symfony/yaml: ^4.3
README
Installing Package through composer
Globally
$ composer global require nerdial/standard-versioning
Or in a root of a project
$ composer require nerdial/standard-versioning
if you choose the ladder option, then you need to call composer's bin folder like the following :
$ ./vendor/bin/moon
Available Commands
Initiate versioning process
This command creates a config file called moon.yaml, then creates the first tag and commit to the git
$ moon init --current-version 0.1.2 --tag-format "v"
Options
Name | Shortcut | Value | Default | Description |
---|---|---|---|---|
--current-version | -c | 0.0.1 | 0.1.0 | if you have already a git repository with some tags you should tell the package which version you are in. |
--tag-format | -f | v , V or whatever prefix you prefer , you could even pass empty string '' without space in between quotes to have no prefix in your tag name | v | tag format tells that what prefix should be added to the begining of tag name. by default it uses semvar structure like v1.0.0 |
Create new tag version
This command will create a new tag in your git repository
$ moon tag major|minor|patch -m "Add new version"
Create a github release and push it to repo
This command will create a new tag in your git repository
$ moon release --token "github personal token"
Create a CHANGELOG.md file in the root direcotry
This command will create a new tag in your git repository
$ moon changelog