forked from jshmrtn/hygeia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
184 lines (177 loc) · 5.88 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
173
174
175
176
177
178
179
180
181
182
183
184
# credo:disable-for-this-file Credo.Check.Readability.Specs
defmodule Hygeia.MixProject do
@moduledoc false
use Mix.Project
def project do
[
app: :hygeia,
name: "Hygeia",
version: "1.48.4",
elixir: "~> 1.13",
compilers: Mix.compilers() ++ [:surface],
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
gettext: [write_reference_comments: false, sort_by_msgid: :case_insensitive],
build_embedded: Mix.env() == :prod or System.get_env("BUILD_EMBEDDED") in ["1", "true"],
test_coverage: [tool: ExCoveralls],
dialyzer:
[
ignore_warnings: ".dialyzer_ignore.exs",
list_unused_filters: true,
plt_add_apps: [:mix]
] ++
if System.get_env("DIALYZER_PLT_PRIV", "false") in ["1", "true"] do
[plt_file: {:no_warn, "priv/plts/dialyzer.plt"}]
else
[]
end,
elixirc_paths: elixirc_paths(Mix.env()),
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.html": :test,
"coveralls.json": :test,
"coveralls.post": :test,
"coveralls.xml": :test
]
]
end
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
def application do
[
mod: {Hygeia.Application, []},
extra_applications: [:logger, :runtime_tools, :eex, :os_mon, :ssl]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_env), do: ["lib"]
# Dependencies can be Hex packages:
#
# {:mydep, "~> 0.3.0"}
#
# Or git/path repositories:
#
# {:mydep, git: "https://github.com/elixir-lang/mydep.git", tag: "0.1.0"}
#
# Type "mix help deps" for more examples and options.
#
# Dependencies listed here are available only for this project
# and cannot be accessed from applications inside the apps/ folder.
defp deps do
[
{:ex_aws, "~> 2.1"},
{:ex_aws_s3, "~> 2.0"},
{:briefly, "~> 0.3"},
{:cadastre, "~> 0.2.0"},
{:certifi, "~> 2.5"},
# Force cowboy update
{:cowboy, "~> 2.9", override: true},
{:credo, "~> 1.4", runtime: false, only: [:dev]},
{:crontab, "~> 1.1"},
{:csv, "~> 3.0"},
{:debounce, "~> 1.0"},
{:dialyxir, "~> 1.0", runtime: false, only: [:dev]},
{:earmark, "~> 1.1"},
{:ecto, "~> 3.7"},
{:ecto_boot_migration, "~> 0.2"},
{:ecto_enum, "~> 1.4"},
{:ecto_psql_extras, "~> 0.4"},
{:ecto_sql, "~> 3.4"},
{:email_checker, "~> 0.1"},
{:erlsom, "~> 1.5"},
{:ex_cldr, "~> 2.24"},
{:ex_cldr_calendars, "~> 1.17"},
{:ex_cldr_dates_times, "~> 2.10"},
{:ex_cldr_languages, "~> 0.3"},
{:ex_cldr_lists, "~> 2.9"},
{:ex_cldr_messages, "~> 0.13.2 or ~> 0.14"},
{:ex_cldr_numbers, "~> 2.23"},
{:ex_cldr_plugs, "~> 1.0"},
{:ex_cldr_units, "~> 3.8"},
{:excoveralls, "~> 0.4", runtime: false, only: [:test]},
{:ex_doc, "~> 0.24", runtime: false, only: [:dev]},
{:ex_phone_number, "~> 0.2"},
{:floki, ">= 0.27.0", only: :test},
{:gen_state_machine, "~> 3.0"},
{:gen_smtp, "~> 1.0"},
{:gettext, "~> 0.19"},
# Override Reason: https://github.com/elixir-grpc/grpc#grpc-elixir
{:gun, "~> 2.0-rc", override: true},
{:hackney, "~> 1.8"},
{:highlander, "~> 0.2"},
{:human_readable_identifier_generator, "~> 1.0"},
{:jason, "~> 1.1"},
{:jose, "~> 1.10"},
{:jsone, "~> 1.5", override: true},
{:libcluster, "~> 3.2"},
{:mail, "~> 0.2"},
{:mime, "~> 1.5 or ~> 2.0"},
{:mox, "~> 1.0", only: :test},
{:nebulex, "~> 2.0-rc"},
{:oidcc, "~> 2.0.0-alpha"},
{:paginator, "~> 1.0"},
{:pdf_generator, "~> 0.6.2"},
{:phoenix, "~> 1.6"},
{:phoenix_active_link, "~> 0.3.2"},
{:phoenix_ecto, "~> 4.0"},
{:phoenix_html, "~> 2.11 or ~> 3.0"},
{:phoenix_live_dashboard, "~> 0.7.0"},
{:phoenix_live_reload, "~> 1.2", only: :dev},
{:phoenix_live_view, "~> 0.18.0"},
{:phoenix_pubsub, "~> 2.0"},
{:plug, "~> 1.14.0"},
# TODO: Revert to released version when this PR is merged and released:
# - https://github.com/ggpasqualino/plug_checkup/pull/66
{:plug_checkup, github: "jshmrtn/plug_checkup", branch: "check_query_selector"},
{:plug_content_security_policy, "~> 0.2.1"},
{:plug_cowboy, "~> 2.4"},
{:plug_dynamic, "~> 1.0"},
{:polymorphic_embed, "~> 3.0"},
{:postgrex, ">= 0.0.0"},
{:remote_ip, "~> 1.0"},
{:sedex, "~> 1.0"},
{:sentry, "~> 8.0"},
{:shards, "~> 1.0"},
{:surface, "~> 0.9.0"},
{:telemetry_metrics, "~> 0.4"},
{:telemetry_metrics_prometheus, "~> 1.0"},
{:telemetry_poller, "~> 0.4 or ~> 1.0"},
{:tzdata, "~> 1.0"},
{:websms, "~> 1.0.0-alpha"},
{:xlsxir, "~> 1.6.4"},
{:zitadel_api, "~> 2.1"}
]
end
# Aliases are shortcuts or tasks specific to the current project.
# For example, to install project dependencies and perform other setup tasks, run:
#
# $ mix setup
#
# See the documentation for `Mix` for more info on aliases.
#
# Aliases listed here are available only for this project
# and cannot be accessed from applications inside the apps/ folder.
defp aliases do
[
setup: ["deps.get", "ecto.reset", "cmd npm install --prefix assets"],
"ecto.setup":
case Mix.env() do
:test ->
["ecto.create", "ecto.migrate"]
_env ->
[
"ecto.create",
"ecto.load --skip-if-loaded --quiet",
"ecto.migrate",
"run priv/repo/seeds.exs"
]
end,
"ecto.reset": ["ecto.drop", "ecto.setup"],
test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"]
]
end
end