3

Is there an equivalent to npm install --save for quick adding hex module to mix.exs ?

I know pasting hex module references do mix.exs deps function like this:

defp deps do
    [
        {:asn, "~> 0.2.1"},
        {:mix_docker, "~> 0.3.0"}
    ]
  end

shouldn't be a big deal, but I've got accustomed to convention

npm install --save xyz 

and the module is downloaded and installed in packages.json configuration file. Very handy.

user456584
  • 86,427
  • 15
  • 75
  • 107
Luman75
  • 878
  • 1
  • 11
  • 28

1 Answers1

6

No, there is no such thing. You need to add dependencies manually to your mix.exs.

Patrick Oscity
  • 53,604
  • 17
  • 144
  • 168