elixir icon indicating copy to clipboard operation
elixir copied to clipboard

Make --sup option the default for `mix new`

Open josevalim opened this issue 13 years ago • 3 comments

It is unlikely someone will want an application without a supervisor chain. By making --sup the default, we will lead people towards the proper direction since the beginning.

/cc @pragdave @alco

josevalim avatar Sep 10 '13 15:09 josevalim

Hmm, don't be too sure about that. There are plenty of library projects which don't start any processes.

That said, I'm not against this change but please have a way to turn supervisor chain generation off.

Also, I can see similar use cases for "create a new Dynamo webapp", "create a new Elixir on Brooms webapp", etc. If mix new is going in the direction of a scaffold generator maybe it's worthwhile to think about allowing different templates.

pminten avatar Sep 14 '13 14:09 pminten

The idea is to support --bare which does not generate the supervisor chain.

José Valim www.plataformatec.com.br Skype: jv.ptec Founder and Lead Developer

josevalim avatar Sep 14 '13 15:09 josevalim

Ah, that makes sense, no new functionality, just switch the default.

pminten avatar Sep 14 '13 16:09 pminten