Created
May 14, 2014 15:33
-
-
Save chartjes/cd677549534138d02d25 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I have an app that is using 5 different packages that are available via our own local Satis repo. | |
I have one main repo that has a composer.json file that installs the 5 packages. However, I need | |
to keep working on code in those individual packages (which are now installed in <main repo>/vendor and | |
grouped under company name: | |
ie | |
vendor/company/package-1/ | |
vendor/company/package-2/ | |
What is the best way to make this workable to allow easy development work? |
if you use --prefer-source, they get checkout out via git/svn, so you can commit from them. But you need to be careful, I heard from cases, where the changes got discarded trough execution of composer update, even if you dont continue when get asked
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Pretty much the same way you work with any external dependency that is under active development:
~1.3
that will install any1.3.x
version, preferably the latests.dev-master
as your version constraint.Bonus:
Composer is able to install these dependencies using
git clone
(using--prefer-dist
) instead of downloading a simplegz
file. This way you can update your dependency local code, commit and push it (and tag it), then runphp composer.phar update my/dependency
and ensure everything is working fine.