Skip to content

Create a bare project by default (no supervisor) #2074

@devinus

Description

@devinus

A lot of Alchemists today (even experienced ones) seem confused about when they should keep the supervisor mix new creates for them. I believe we should make people think about when they need a real application in the first place versus making them question if they should remove it.

Examples of new apps that should be library apps but include the default (useless) supervisor and start themselves as real applications:

https://github.com/phoenixframework/phoenix/blob/master/lib/phoenix/supervisor.ex
https://github.com/phoenixframework/ex_conf/blob/master/lib/ex_conf/supervisor.ex
https://github.com/nurugger07/inflex/blob/master/lib/inflex/supervisor.ex
https://github.com/knewter/exdrone/blob/master/lib/exdrone/supervisor.ex

Taken from a random smattering of https://github.com/search?l=elixir&p=1&q=stars%3A%3E1&s=updated&type=Repositories, sorry I can't PR everybody.

@chrismccord @nurugger07 @knewter

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions