如何使用作曲家获取多个供应商目录?
我的项目依赖于 ZF 和一个 JS 库.我希望能够将 ZF 库部署到正常位置(vendor/zendframework/zendframework1),然后将我的 JS 库部署到其他地方(public/my-vendor/my-library).有没有办法做到这一点?
My project relies on ZF and on a JS library. I wanted to be able to deploy the ZF library to the normal location (vendor/zendframework/zendframework1) but then deploy my JS library to somewhere else (public/my-vendor/my-library). Is there anyway to do this?
推荐答案
我遇到了符号链接的想法,但我想自动化这个而不是手动创建符号链接.我打算创建一个作曲家脚本来创建符号链接.然后我发现 Windows 和 *nix 上的符号链接需要以不同的方式创建,这使得这个解决方案变得更加混乱.我发现在作曲家文档中,他们在自定义安装程序页面上讨论了相同类型的问题,并说要解决此问题以创建您自己的自定义安装程序.
I came across the symlink idea but I wanted to automate this instead of manually creating the symlinks. I was going to create a composer script to create the symlink. I then found that symlinks on Windows and *nix need to be created in different ways which made this solution get messier by the second. I found that in the composer docs they talk about this same type of issue on the custom installers page and say that to solve this to create your own custom installer.
- 相关文档部分:http://getcomposer.org/doc/articles/custom-安装程序.md
- 我的自定义安装程序:https://github.com/ddelrio1986/zf1-public-资产安装程序
相关文章