有没有办法使用Composer下载软件包而无需进行文档和测试? [英] Is there any way to use Composer download packages without docs and testing things?

查看:77
本文介绍了有没有办法使用Composer下载软件包而无需进行文档和测试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道Gem可以做到,而且我真的不需要文档和测试功能。

I know Gem can do that, and I really don't need the docs and testing things.

Composer还能做到吗?谢谢。

Can Composer do that also? Thanks.

推荐答案

您需要使用-prefer-dist 。并且,如果您的存储库有发行版,则将下载。您还可以使用-no-dev 标志来排除软件包的 require-dev 部分中列出的库。这些库可能仅对开发有用。

You need to use --prefer-dist. And if there is a dist version for your repository it will be downloaded. You also can use --no-dev flag to exclude libraries that listed in require-dev section of packages. These libraries maybe useful only for development.

这篇关于有没有办法使用Composer下载软件包而无需进行文档和测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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