Cotya / magento-composer-installer

Composer installer for Magento modules
212 stars 77 forks source link

Added "-dev" for extra values #163

Closed JeroenBoersma closed 7 years ago

JeroenBoersma commented 7 years ago

After recent events it should be awesome to have different strategies for dev and production. When working locally you can now have any extra parameter, append a -dev and these will overwrite the other setting.

For example:

....
"extra": {
    "magento-deploystrategy": "copy",
    "magento-deploystrategy-dev": "symlink",
}
...
JeroenBoersma commented 7 years ago

Fixes #162

Flyingmana commented 7 years ago

thank you very much, thats a nice solution :)

A followup PR adding some documentation in the Docs (maybe the FAQ section) and maybe some tests would be appreciated.

JeroenBoersma commented 7 years ago

If there is something I can do, just hit me up... Happy to help!