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.
No, there is no such thing. You need to add dependencies manually to your mix.exs
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.