-
Notifications
You must be signed in to change notification settings - Fork 97
/
mix.exs
172 lines (147 loc) · 4.35 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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
defmodule Accent.Mixfile do
use Mix.Project
@version "1.23.4"
def project do
[
app: :accent,
version: @version,
elixir: "~> 1.17",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: Mix.compilers(),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
aliases: aliases(),
xref: [exclude: IEx],
deps: deps(),
releases: releases(),
dialyzer: [
list_unused_filters: true
],
test_coverage: [tool: ExCoveralls]
]
end
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
def application do
[mod: {Accent, []}, extra_applications: [:logger, :canada]]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "web", "vendor", "test/support"]
defp elixirc_paths(_), do: ["lib", "web", "vendor"]
# Specifies your project dependencies.
#
# Type `mix help deps` for examples and options.
defp deps do
[
# Framework
{:phoenix, "~> 1.4"},
{:phoenix_html, "~> 3.0"},
# Plugs
{:plug_assign, "~> 2.0"},
{:canada, "~> 2.0.0", override: true},
{:canary, github: "runhyve/canary"},
{:corsica, "~> 2.0"},
{:bandit, "~> 1.0"},
{:plug, "~> 1.14"},
{:plug_canonical_host, "~> 2.0"},
# Database
{:ecto, "~> 3.2", override: true},
{:ecto_sql, "~> 3.2"},
{:ecto_dev_logger, "~> 0.4"},
{:postgrex, "~> 0.14"},
{:cloak_ecto, "~> 1.2"},
# Spelling interop with Java runtime
{:exile, "~> 0.7"},
# Cache
{:cachex, "~> 3.6"},
# Phoenix data helpers
{:phoenix_ecto, "~> 4.0"},
{:scrivener_ecto, "~> 2.0"},
{:dataloader, "~> 2.0"},
# GraphQL
{:absinthe, "~> 1.4"},
{:absinthe_plug, "~> 1.4"},
{:absinthe_error_payload, "~> 1.0"},
# Utils
{:jsone, "~> 1.4"},
{:mochiweb, "~> 3.0"},
{:httpoison, "~> 1.1"},
{:gettext, "~> 0.20.0"},
{:csv, "~> 2.0"},
{:php_assoc_map, "~> 3.0"},
{:jason, "~> 1.2", override: true},
{:erlsom, "~> 1.5"},
{:xml_builder, "~> 2.0"},
{:aws_signature, "~> 0.3"},
# Auth
{:ueberauth, "~> 0.10"},
{:oauth2, "~> 2.0"},
{:ueberauth_microsoft, "~> 0.21"},
{:ueberauth_google, "~> 0.6"},
{:ueberauth_github, "~> 0.7"},
{:ueberauth_discord, "~> 0.5"},
{:ueberauth_auth0, "~> 2.0"},
{:ueberauth_oidc, "~> 0.1.7"},
# Errors
{:sentry, "~> 7.0"},
# Mails
{:bamboo, "~> 2.3", override: true},
{:tls_certificate_check, "~> 1.21"},
{:bamboo_phoenix, "~> 1.0"},
{:bamboo_smtp, "~> 4.2"},
# Events handling
{:oban, "~> 2.13"},
# Metrics and monitoring
{:new_relic_agent, "~> 1.27"},
{:new_relic_absinthe, "~> 0.0"},
{:telemetry, "~> 1.0", override: true},
{:telemetry_ui, "~> 4.0"},
{:ecto_psql_extras, "~> 0.7"},
# Mock testing
{:mox, "~> 1.0", only: :test},
{:mock, "~> 0.3.0", only: :test},
{:factori, "~> 0.13", only: :test},
# Google API authentication
{:goth, "~> 1.4"},
# Network request
{:tesla, "~> 1.3"},
# Dev
{:dialyxir, "~> 1.0", only: ~w(dev test)a, runtime: false},
{:credo, ">= 0.0.0", only: ~w(dev test)a},
{:credo_envvar, "~> 0.1.0", only: ~w(dev test)a, runtime: false},
{:styler, "~> 1.0", only: ~w(dev test)a, runtime: false},
{:excoveralls, "~> 0.8", only: :test},
{:phoenix_live_reload, "~> 1.0", only: :dev}
] ++
system_specific_deps()
end
defp system_specific_deps do
is_apple_arm64 =
:os.type() === {:unix, :darwin} and
not List.starts_with?(:erlang.system_info(:system_architecture), ~c"x86_64")
if is_apple_arm64 do
[]
else
[
{:p1_utils, "1.0.15", override: true},
{:fast_yaml, github: "processone/fast_yaml", ref: "e789f68895f71b7ad31057177810ca0161bf790e"}
]
end
end
defp aliases do
[
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
test: ["ecto.create --quiet", "ecto.migrate", "test"]
]
end
defp releases do
[
accent: [
version: @version,
applications: [accent: :permanent]
]
]
end
end