问题
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