-
Notifications
You must be signed in to change notification settings - Fork 4
/
mix.exs
92 lines (77 loc) · 2.05 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
defmodule Uplink.MixProject do
use Mix.Project
def project do
[
app: :uplink,
version: "0.18.0",
elixir: "~> 1.13",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
releases: [
uplink: [
include_executables_for: [:unix]
]
]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test),
do: ["lib", "test/support", "test/scenarios", "test/fixtures"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger],
mod: {Uplink.Application, []}
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:jason, "~> 1.0"},
# Data
{:ecto_sql, "~> 3.9"},
{:postgrex, ">= 0.0.0"},
{:eventful, "~> 0.2.3"},
# Caching Layer
{:nebulex, "~> 2.3"},
{:shards, "~> 1.0"},
{:decorator, "~> 1.4"},
{:telemetry, "~> 1.0"},
# Worker
{:oban, "~> 2.14"},
# HTTP Client
{:req, "~> 0.4"},
{:httpoison, "~> 2.2"},
# Clustering
{:libcluster, "~> 3.0"},
{:pogo, "~> 0.3.0"},
# One time password
{:pot, "~> 1.0.2"},
# Certificate
{:x509, "~> 0.8.4"},
# Infrastructure
{:formation, "~> 0.15"},
{:lexdee, "~> 2.4.4"},
{:plug_cowboy, "~> 2.0"},
{:mint_web_socket, "~> 1.0.2"},
{:broadway, "~> 1.0"},
{:prometheus_parser, "~> 0.1.10"},
# Test
{:bypass, "~> 2.1", only: :test},
{:mox, "~> 1.0", only: :test},
{:dialyxir, "~> 1.0", only: [:dev], runtime: false}
# {:dep_from_hexpm, "~> 0.3.0"},
# {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
]
end
def aliases do
[
test: ["ecto.create --quiet", "ecto.migrate", "test"],
"ecto.setup": ["ecto.create", "ecto.migrate"],
"ecto.reset": ["ecto.drop", "ecto.setup"]
]
end
end