如何使用Composer将代码标记为稳定? [英] How to mark code as stable using Composer?

查看:99
本文介绍了如何使用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆