mnsami / composer-custom-directory-installer

A composer plugin, to install differenty types of composer packages in custom directories outside the default composer default installation path which is in the vendor folder.
https://packagist.org/packages/mnsami/composer-custom-directory-installer
MIT License
138 stars 27 forks source link

installer-build-prod #28

Open turtle0x1 opened 4 years ago

turtle0x1 commented 4 years ago

Hey cool library,

Unless im missing something, would you accept a PR to support an installer-build-prod option to overwrite the values in installer-build ?

I think I would need to modify here ?

https://github.com/mnsami/composer-custom-directory-installer/blob/1ccaf2da421dd9f6bcec4631c38e69e67677125f/src/Composer/CustomDirectoryInstaller/PackageUtils.php#L29

mnsami commented 4 years ago

@turtle0x1 can you elaborate ? what is wrong with using the installer-paths ?

turtle0x1 commented 4 years ago

I want different paths between dev & prod ?

mnsami commented 4 years ago

why don't you use require-dev ? @turtle0x1 , isn't it the purpose of it in first place?

but anyways, you can just use the same mechanism but with different folder name

turtle0x1 commented 4 years ago

For example:

I have project X which is made up of 3 components (A, B & C)

A, B & C are hard dependencies (not dev dependencies) but often I want to develop project X and all three components at one one time

X, A, B & C each need to be in there own "git directory" so I can pull, commit & push indivually, and in project X i can use any changes made to A, B & C without having to commit & push them (and then update satis)

But when it comes to production it no longer benefits me to have A, B, C to be installed in /some/random/directory over application_dir/vendor