enom / bump
Simple version bumping script
1.0.0
2020-03-31 14:50 UTC
Requires
- php: ^7.1
- enom/cli: ^1.0
Requires (Dev)
- codeception/base: ^2.1@dev
- codeception/specify: dev-master
- enom/pharmon: dev-master
- escapestudios/symfony2-coding-standard: 3.x-dev
- friendsofphp/php-cs-fixer: ^2.10
- squizlabs/php_codesniffer: ^3.2
This package is auto-updated.
Last update: 2024-11-24 03:19:37 UTC
README
Simple version bumping script.
Installation
Globally installing the script.
composer global require enom/bump
You will need to add Composer's bin directory to your PATH in ~/.bash_profile
(or ~/.bashrc
) by adding the following line:
export PATH=~/.composer/vendor/bin:$PATH
Usage
Display the current composer.json semver:
bump -v
# Displays (e.g.) "composer.json version: 1.2.3"
Bumps composer.json's semver.
bump -n
# Bumps composer.json's version from (e.g.) 1.2.3 to 1.3.0
You can also bump other JSON files that have a "version" attribute by specifying
them using --files
and separating them with commas:
bump --patch --files composer.json,package.json
# Bumps both file versions from (e.g.) 1.2.3 to 1.2.4