forked from plausible/analytics
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmix.exs
More file actions
108 lines (101 loc) · 3.16 KB
/
mix.exs
File metadata and controls
108 lines (101 loc) · 3.16 KB
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
defmodule Plausible.MixProject do
use Mix.Project
def project do
[
app: :plausible,
version: System.get_env("APP_VERSION", "0.0.1"),
elixir: "~> 1.19.5",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps(),
releases: [
plausible: [
include_executables_for: [:unix],
applications: [plausible: :permanent, opentelemetry: :temporary],
steps: [:assemble, :tar]
]
],
dialyzer: [
plt_file: {:no_warn, "priv/plts/dialyzer.plt"},
plt_add_apps: [:mix, :ex_unit]
],
listeners: [Phoenix.CodeReloader]
]
end
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
def application do
[
mod: {Plausible.Application, []},
extra_applications: [
:logger,
:runtime_tools
]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Specifies your project dependencies.
#
# Type `mix help deps` for examples and options.
defp deps do
[
{:cachex, "~> 4.1"},
{:cors_plug, "~> 3.0"},
{:ecto_ch, "~> 0.8.0"},
{:ecto_sql, "~> 3.13"},
{:httpoison, "~> 1.4"},
{:location, git: "https://github.com/plausible/location.git", ref: "0c3b18a"},
{:locus, "~> 2.3.10"},
{:oban, "~> 2.20"},
{:open_telemetry_decorator, "~> 1.5"},
{:opentelemetry, "~> 1.7"},
{:opentelemetry_api, "~> 1.5"},
{:opentelemetry_ecto, "~> 1.2"},
{:opentelemetry_exporter, "~> 1.10"},
{:opentelemetry_bandit, "~> 0.1.0"},
{:opentelemetry_oban, "~> 1.1"},
{:opentelemetry_phoenix, "~> 1.2"},
{:phoenix, "~> 1.8"},
{:phoenix_ecto, "~> 4.7"},
{:phoenix_html, "~> 4.3"},
{:phoenix_live_view, "~> 1.0"},
{:phoenix_pubsub, "~> 2.0"},
{:plug, "~> 1.19"},
{:bandit, "~> 1.6"},
{:postgrex, "~> 0.22"},
{:public_sufx, "~> 0.6"},
{:ref_inspector, "~> 2.1"},
{:referrer_blocklist,
git: "https://github.com/plausible/referrer-blocklist.git", ref: "d6f52c2"},
{:sentry, "~> 11.0"},
{:siphash, "~> 3.2"},
{:telemetry, "~> 1.3"},
{:telemetry_metrics, "~> 1.1"},
{:telemetry_metrics_statsd, "~> 0.7"},
{:timex, "~> 3.7"},
{:tzdata, "~> 1.1.2"},
{:ua_inspector, "~> 3.11"},
# Dev only dependencies
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false},
{:phoenix_live_reload, "~> 1.6", only: :dev},
# Test only dependencies
{:double, "~> 0.8.0", only: :test},
{:elixir_uuid, "~> 1.2", only: :test},
{:ex_machina, "~> 2.3", only: :test},
{:mox, "~> 1.0", only: :test}
]
end
defp aliases do
[
"ecto.setup": ["ecto.create", "ecto.migrate"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
test: ["ecto.create --quiet", "ecto.migrate", "test", "clean_clickhouse"],
sentry_recompile: ["compile", "deps.compile sentry --force"]
]
end
end