composer-custom-directory-installer icon indicating copy to clipboard operation
composer-custom-directory-installer copied to clipboard

installer-build-prod

Open turtle0x1 opened this issue 6 years ago • 4 comments

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

turtle0x1 avatar Oct 23 '19 17:10 turtle0x1

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

mnsami avatar Oct 23 '19 19:10 mnsami

I want different paths between dev & prod ?

turtle0x1 avatar Oct 23 '19 19:10 turtle0x1

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

mnsami avatar Oct 28 '19 12:10 mnsami

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

turtle0x1 avatar Oct 28 '19 13:10 turtle0x1