DEV Community

Marcøs
Marcøs

Posted on • Edited on

1 2

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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay