Issue
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?
Solution
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.
- Relavent docs section: http://getcomposer.org/doc/articles/custom-installers.md
- My custom installer: https://github.com/ddelrio1986/zf1-public-asset-installer
Answered By - ddelrio1986
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.