subitolabs / bump-bundle
在git项目中管理项目版本、变更日志和部署标签。
v1.0.0
2018-03-05 15:22 UTC
Requires
- php: >=5.5.0
- symfony/console: ~2.5|~3.0|~4.0
- symfony/framework-bundle: ~3
- symfony/process: ^3.3
- symfony/yaml: ~2.5|~3.0|~4.0
This package is not auto-updated.
Last update: 2024-09-18 18:33:40 UTC
README
处理项目(git)版本管理和变更日志的Symfony扩展包。遵守语义化版本规范。
安装
将subitolabs/bump-bundle添加到您的composer.json文件中
{
"require": {
"subitolabs/bump-bundle": "~1.0"
}
}
在app/AppKernel.php中注册此扩展包
// app/AppKernel.php public function registerBundles() { $bundles[] = new Subitolabs\Bundle\BumpBundle\SubitolabsBumpBundle(); }
控制台命令
bump
Usage:
subitolabs:bump [options] [--] <env> [<position>]
Arguments:
env Environment
position Position to increment: 0=nothing(default), 1=MAJOR, 2=MINOR, 3=PATCH [default: 0]
Options:
--dry-run Set to not alter data and git something
--message[=MESSAGE] Tag message [default: "Bump to {{tag}} with Subitolabs bump bundle"]
--tag[=TAG] How tag is made [default: "{{env}}-{{version}}"]
--file[=FILE] File to write version info (JSON encoded) [default: "./app/config/version.yml"]
--changelog[=CHANGELOG] CHANGELOG.md path [default: "./CHANGELOG.md"]
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
-e, --env=ENV The environment name [default: "dev"]
--no-debug Switches off debug mode
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Help:
Bump version according semantic versioning (http://semver.org/) - create git tag.
changelog
Usage:
subitolabs:changelog [options]
Options:
--changelog[=CHANGELOG] CHANGELOG.md path [default: "./CHANGELOG.md"]
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
-e, --env=ENV The environment name [default: "dev"]
--no-debug Switches off debug mode
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Help:
Write full changelog based on git tags and git logs.
配置
无需配置。