forked from cambiatus/backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
executable file
·146 lines (129 loc) · 3.47 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
defmodule Cambiatus.Mixfile do
use Mix.Project
def project do
[
app: :cambiatus,
version: "2.0.0",
elixir: "~> 1.11",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps(),
releases: releases()
]
end
def application do
[
mod: {Cambiatus.Application, []},
extra_applications: [:runtime_tools, :plug, :magic_number]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
# Basic packages
{:calendar, "~> 1.0.0", override: true},
{:ecto_sql, "~> 3.5"},
{:postgrex, ">= 0.0.0"},
{:gettext, "~> 0.20.0"},
{:cowboy, "~> 2.0"},
{:tesla, "~> 1.2.1"},
{:jason, "~> 1.2.0"},
{:cors_plug, "~> 1.5"},
{:poolboy, ">= 0.0.0"},
{:timex, "~> 3.4"},
{:poison, "~> 3.0"},
{:hackney,
github: "benoitc/hackney", override: true, ref: "d8a0d979b9bdb916fe090bf1d5b076e35c2efc33"},
{:uuid, "~> 1.1"},
{:magic_number, "~> 0.0.4"},
{:mogrify, "~> 0.8.0"},
# Formatters
{:ex_phone_number, "~> 0.2"},
{:number, "~> 1.0"},
{:earmark, "~> 1.4"},
{:html_sanitize_ex, "~> 1.4"},
{:ex_cldr, "~> 2.33"},
{:ex_cldr_dates_times, "~> 2.12"},
# Email capabilities
{:swoosh, "~> 1.7.3"},
{:phoenix_swoosh, "~> 0.3"},
{:gen_smtp, "~> 1.2"},
# Phoenix
{:phoenix, "~> 1.5.13"},
{:phoenix_pubsub, "~> 2.0"},
{:phoenix_ecto, "~> 4.0"},
# Absinthe Packages
{:absinthe, "~> 1.6"},
{:absinthe_plug, "~> 1.5.0"},
{:absinthe_phoenix, "~> 2.0"},
{:absinthe_relay, "~> 1.5.0"},
{:dataloader, "~> 1.0.0"},
# EOS/Blockchain Packages
{:eosrpc, "~> 0.6.2"},
{:hashids, "~> 2.0"},
{:eosjs_auth_wrapper, "~> 0.1.7"},
# Sentry
{:sentry, "8.0.0"},
{:plug_cowboy, "~> 2.3"},
# AWS Packages
{:ex_aws, "~> 2.2.1"},
{:ex_aws_s3, "~> 2.1"},
{:configparser_ex, "~> 4.0"},
# Push Notification Packages
{:web_push_encryption, "~> 0.3.1"},
# Background processing
{:oban, "~> 2.10.1"},
# Dev only
{:credo, "~> 1.5", only: [:dev, :test], runtime: false},
{:sobelow, "~> 0.11.1", only: :dev},
# Test Only
{:ex_machina, "~> 2.3", only: :test},
{:faker, "~> 0.14", only: :test},
{:mox, "~> 0.5.0", only: :test}
]
end
defp aliases do
[
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
test: [
"ecto.drop --quiet",
"ecto.create --quiet",
"ecto.migrate --quiet",
"run priv/repo/country_seeds.exs",
"test"
],
check: [
"compile --warnings-as-errors --all warnings",
"format --check-formatted",
"sobelow --config",
"credo"
]
]
end
defp releases do
[
dev: [
include_executables_for: [:unix],
include_erts: true,
strip_beams: false,
quiet: false
],
demo: [
include_executables_for: [:unix],
include_erts: true,
strip_beams: true,
quiet: false
],
cambiatus: [
include_executables_for: [:unix],
include_erts: true,
strip_beams: true,
quiet: false
]
]
end
end