Composer docs, https://getcomposer.org/doc/04-schema.md#require verses #require-dev
"require-dev": {
"barryvdh/laravel-debugbar": "1.*"
},
Thanks! Is there similar functionality for the scripts section like post-install-cmd?
kcristella said:
Thanks! Is there similar functionality for the scripts section like post-install-cmd?
If your asking if there is a post-install-cmd, then yes. Actually a large list of events for scripts section, https://getcomposer.org/doc/articles/scripts.md#event-names
TerrePorter said:
kcristella said:
Thanks! Is there similar functionality for the scripts section like post-install-cmd?
If your asking if there is a post-install-cmd, then yes. Actually a large list of events for scripts section, https://getcomposer.org/doc/articles/scripts.md#event-names
Really looking to know if there is a way to run one set of post-install-cmd for dev and another for production.
Really looking to know if there is a way to run one set of post-install-cmd for dev and another for production.
Not built into composer no, you could build this into your post-install-cmd script.
Having it in Composer doesn't really hurt, unless for a few KBs in diskspace. You can just set the ServiceProvider in your local config only (using append_config()
) and it won't get loaded.
(But if you really really care about that size, you could set it to require-dev indeed)
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community