Is there any way to use Composer download packages without docs and testing things?

本秂侑毒 提交于 2019-12-24 11:53:12

问题


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

Can Composer do that also? Thanks.


回答1:


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.



来源:https://stackoverflow.com/questions/17100116/is-there-any-way-to-use-composer-download-packages-without-docs-and-testing-thin

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!