An alternative way of adding dependencies to your Elixir project with mix (Similar to gem/pip install for dev environment)
mix install ecto
mix install poolboy plug
Only for :dev
and :test
environment
mix install mix_test_watch --test --dev
# or
mix install mix_test_watch -t -d
Install task will update :deps
in mix.exs file to
defp deps do
[
{:ecto, "~> 1.1.3", },
{:poolboy, "~> 1.5.1", },
{:plug, "~> 1.1.0", },
{:mix_test_watch, "~> 0.2.5", only: ~w(dev test)a},
]
end
TBD
This tooling may be not an idiomatic
way for Elixir and opposite to good practices I'm not sure about it. Please open an issue or notify me if you see code that smells bad.