DEV Community

Marcøs
Marcøs

Posted on • Updated on

Elixir project setup - mix.exs

I'll be writing about typical changes I make to the default phoenix

See file on GitHub

  • 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",
Enter fullscreen mode Exit fullscreen mode
  defp aliases do
    [
      compile: ["compile --warnings-as-errors"],
      "ecto.migrate": ["ecto.migrate --log-sql"],
    ...
    ]
Enter fullscreen mode Exit fullscreen mode

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)