How to archive only composer require-dev with all their dependencies
To optimize our CI builds we wanted to split our production dependencies from out dev dependencies. So that we would aquire two seperate archives which could be deployed seperatley.
For production we would only deploy production.tar.gz for testing we would deploy
composer only comes with the
composer install/update -no-dev that would ignore installation of dev dependencies.
Currently we are running two
composer install while moving the
vendor_prod/ and so forth using
rsync to find the differenc between prod and dev installation and creating the proper tar balls. Sadly this creates a huge IO load.