Add composer require --dev to the detail view
Problem to solve
Some extensions are expected to installed / used in dev context only. The current snippet automatically installs in prod mode.
The benefit would be to install more quickly libs in dev mode. No need anymore to adjust the copied snippet.
We could either go the easy way and show the additional snippet always or allow an extension owner to flag the extension as dev extension which causes the proper snippet to be rendered.
Following should be discussed further:
- Do we want to show the --dev snippet always
- If 1 is answered with no, should an ext. owner flag the ext. as dev-ext.? Also, if an ext. is flagged as dev, should we still display the prod snippet?
What does success look like, and how can we measure that?
TBD after discussion.