Creating a new migration triggers a full recompilation

Elixir v1.9
Phoenix v1.3

It’s an umbrella app. I go into app/my_app and run mix ecto.gen.migration CreateNewTable and it starts compiling the whole project.

Is that suppose to happen?

I think the app is always going to be compiled before running any mix task. The reason for that is that you might want to run a task that’s defined in the application.

But I must say that I find it funny when I make a typo in compile, as in mix compile:

$ ~/app > mix compil
Compiling 320 files (.ex)
Generated my_app app
** (Mix) The task "compil" could not be found. Did you mean "compile"?