I'll be writing about typical changes I make to the default phoenix
- Update the minimum elixir version allowed. If you're working with other devs, this will force them to keep their local environment up to date.
elixir: ">= 1.9.0",
- Override the default tasks for compile and ecto.migrate.
defp aliases do
[
compile: ["compile --warnings-as-errors"],
"ecto.migrate": ["ecto.migrate --log-sql"],
...
]
The compile
alias is useful make sure that the warnings-as-errors
flag is always enabled, even when running mix test
or mix release
. The ecto.migrate
flag is to display the raw sql for migration scripts, not just the Ecto Query DSL.
Top comments (0)