When you create a new project using Mix, it generates a standard
README.md, which is really useful if you upload the project to an open source Git(Hub) repository.
It looks like this:
# ProjectName
**TODO: Add description**
## Installation
1. Add `project_name` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[{:project_name, "~> 0.1.0"}]
end
```
2. Ensure `project_name` is started before your application:
```elixir
def application do
[applications: [:project_name]]
end
```
I would like to propose that this autogenerated readme be altered slightly, to:
# ProjectName
**TODO: Add description**
## Installation
1. Add `project_name` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:project_name, "~> 0.1.0"}
]
end
```
2. Ensure `project_name` is started before your application:
```elixir
def application do
[applications: [:project_name]]
end
```
This would make it easier to copy the dependency tuple.
We might want to also change the generated mix.exs, so its dependency list also starts and ends on separate lines (possibly with a comment in-between), to make it easier to add dependencies, and gently push developers to adding new dependencies on separate lines, which would improve readability:
defp deps do
[
# add dependencies here
]
end
Sincerely,
~Wiebe-Marten Wijnja