You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are times when it's necessary for a dependency to live outside of vendor/. For instance, projects such as WordPress want to live somewhere in the web/ folder.
A couple of requests to that order have occurred in the past, asking for wordpress-core or drupal-core or what not. As I understand it, they got closed owing to the fact that they're too localized, in the sense that only one package would ever use it. Which is fair enough.
The current options are to either write a custom installer to that order, or abuse composer/installers by making e.g. WordPress itself masquerade as a wordpress-plugin and configuring a custom installer-paths accordingly. The same for language files. This makes absolutely no sense...
Could we instead simply have composer/installers pick up the installer-paths directives for any package, including types it's not supposed to recognize?
Along the same lines, could we force it to recognize a type by merely encountering it in composer.json with an assorted installer-paths directive? This could be useful, for instance, in a scenario like:
If that is not an option, could we add a generic sounding type, e.g. web-package or custom-package or even custom that could be used by all of these projects?
The text was updated successfully, but these errors were encountered:
While I understand the large desire for this type of thing, I don't think it belongs in composer/installers. The above use case is what custom installers are for.
Each framework has a choice:
Adopt composer and have all packages use the generic library type (highly preferred).
Officially support a custom installer to massage composer to their liking.
Completely ignore composer and leave it up to the users to write custom installers.
composer/installers is meant to push frameworks to number 1.
Feel free to open an issue on composer itself though. See if they have any interest in supporting installer-paths for generic package types at the composer level.
I understand where you're coming from, but rejecting this on philosophical grounds doesn't seem very constructive. What's going to end up happening is that one or more developers will create a composer plugin that allows precisely what is requested here.
There are times when it's necessary for a dependency to live outside of
vendor/
. For instance, projects such as WordPress want to live somewhere in theweb/
folder.A couple of requests to that order have occurred in the past, asking for
wordpress-core
ordrupal-core
or what not. As I understand it, they got closed owing to the fact that they're too localized, in the sense that only one package would ever use it. Which is fair enough.The current options are to either write a custom installer to that order, or abuse
composer/installers
by making e.g. WordPress itself masquerade as awordpress-plugin
and configuring a custominstaller-paths
accordingly. The same for language files. This makes absolutely no sense...Could we instead simply have
composer/installers
pick up theinstaller-paths
directives for any package, including types it's not supposed to recognize?Along the same lines, could we force it to recognize a type by merely encountering it in composer.json with an assorted
installer-paths
directive? This could be useful, for instance, in a scenario like:If that is not an option, could we add a generic sounding type, e.g.
web-package
orcustom-package
or evencustom
that could be used by all of these projects?The text was updated successfully, but these errors were encountered: