-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
72 lines (68 loc) · 2.06 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
defmodule FootballResults.MixProject do
use Mix.Project
def project do
[
app: :football_results,
version: "0.1.0",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
deps: deps(),
runtime_config_path: ~w(config/config.exs),
# Add paths per environment
elixirc_paths: elixirc_paths(Mix.env()),
name: "FootballResults",
description: "API for football results",
docs: [
main: "FootballResults",
extras: ["README.md"]
],
package: [
links: %{
"Github" => "https://github.com/shavit/animated-telegram"
}
],
source_url: "https://github.com/shavit/animated-telegram"
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [
:logger,
:prometheus_ex,
:prometheus_plugs,
:prometheus_process_collector,
:grpc
],
# mod is the application callback module
mod: {FootballResults, [FootballResults.Supervisor]}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:absinthe, "~> 1.4.0"},
{:absinthe_plug, "~> 1.4.0"},
# There is an issue with elixir-grpc and cowboy
# https://github.com/elixir-grpc/grpc/issues?utf8=✓&q=is%3Aissue+is%3Aopen+cowboy
# {:cowboy, "~> 2.6.3", override: true},
{:cowboy, github: "elixir-grpc/cowboy", tag: "grpc-2.6.3", override: true},
{:credo, "~> 0.8", only: [:dev, :test], runtime: false},
{:dataloader, "~> 1.0.0"},
{:distillery, "~> 2.0"},
{:google_protos, "~> 0.1"},
{:guardian, "~> 1.2"},
{:grpc, github: "elixir-grpc/grpc"},
{:jason, "~> 1.1.0"},
{:plug, "~> 1.8.3"},
{:plug_cowboy, "~> 2.0"},
{:poison, "~> 2.1.0"},
{:prometheus_ex, "~> 3.0.5"},
{:prometheus_plugs, "~> 1.1"},
{:prometheus_process_collector, "~> 1.4.5"},
{:telemetry, "~> 0.4.0"}
]
end
end