如何使用Composer将代码标记为稳定? [英] How to mark code as stable using Composer?
问题描述
我最近遇到了composer的变化,意思是默认的 minimum-stability
是 stable
而不是将它设置为 dev
我想将一些库标记为稳定。
I've recently come across the change in composer meaning that the default minimum-stability
is stable
, and rather than set this to dev
I'd like to mark some of my libraries as stable.
两个相关的分支 release
和 dev
从 master
每次都会有一些东西被合并到 release
并被标记为新版本。
I actually use two relevant branches, release
and dev
branched from master
. Every so often something is merged into release
and tagged as new version.
作曲家如何确定我的库的稳定性,是否有分支的命名约定,版本号,composer.json中的键?
How does composer determine the stability of my libraries, is there a naming convention for branches, version nums, a key in composer.json?
感谢
推荐答案
答案是:标签。如果您不想使用标记,也可以使用别名。但是值得一提的是,只有当你的软件包稳定,而不是让其他人认为你的软件包是稳定的。
The answer is: Tags. Your may also use Alias, if you don't want to use tags. But it's worth to mention, that you should only mark your packages as stable, when they are stable and not to make others believe they are.
更新:一个链接: 稳定性
这篇关于如何使用Composer将代码标记为稳定?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!