forked from ZaneH/exchange-rate-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
43 lines (39 loc) · 1009 Bytes
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
defmodule ExchangeRateApi.MixProject do
use Mix.Project
def project do
[
app: :exchange_rate_api,
version: "0.1.0",
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications:
extra_applications(Mix.env(), [
:logger,
:con_cache,
:httpoison,
:corsica
]),
mod: {ExchangeRate, []}
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:con_cache, "~> 1.0.0"},
{:plug_cowboy, "~> 2.6.0"},
{:poison, "~> 5.0.0"},
{:lettuce, "~> 0.2.0", only: :dev},
{:httpoison, "~> 2.0.0"},
{:corsica, "~> 1.3.0"},
{:ssl_verify_fun, "~> 1.1.7", manager: :rebar3, override: true}
]
end
defp extra_applications(:dev, default), do: default ++ [:lettuce]
defp extra_applications(_env, default), do: default
end