forked from membraneframework-labs/membrane_videoroom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
84 lines (75 loc) · 2.16 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
defmodule VideoRoom.MixProject do
use Mix.Project
def project do
[
app: :membrane_videoroom_demo,
version: "0.1.0",
elixir: "~> 1.13",
aliases: aliases(),
start_permanent: Mix.env() == :prod,
deps: deps(),
dialyzer: dialyzer()
]
end
def application do
[
mod: {VideoRoom.Application, []},
extra_applications: [:logger]
]
end
defp deps do
[
{:membrane_rtc_engine, github: "membraneframework/membrane_rtc_engine", override: true},
{:membrane_rtc_engine_timescaledb,
github: "membraneframework/membrane_rtc_engine_timescaledb"},
{:plug_cowboy, "~> 2.5.2"},
{:phoenix, "~> 1.6"},
{:phoenix_html, "~> 3.0"},
{:phoenix_live_view, "~> 0.16.0"},
{:phoenix_live_reload, "~> 1.2"},
{:jason, "~> 1.2"},
{:phoenix_inline_svg, "~> 1.4"},
{:uuid, "~> 1.1"},
{:esbuild, "~> 0.4", runtime: Mix.env() == :dev},
{:cowlib, "~> 2.11.0", override: true},
{:dialyxir, ">= 0.0.0", only: :dev, runtime: false},
{:credo, ">= 0.0.0", only: :dev, runtime: false},
# Ecto
{:ecto_sql, "~> 3.7"},
{:postgrex, "~> 0.16"},
# Otel
{:opentelemetry, "~> 1.0"},
{:opentelemetry_api, "~> 1.0"},
{:opentelemetry_exporter, "~> 1.0"},
{:opentelemetry_zipkin, "~> 1.0"},
# Benchmarks
{:beamchmark, "~> 0.1.0", only: :benchmark},
{:stampede, github: "geometerio/stampede-elixir", only: :benchmark},
{:httpoison, "~> 1.8", only: :benchmark},
{:poison, "~> 5.0.0", only: :benchmark}
]
end
defp dialyzer() do
opts = [
flags: [:error_handling]
]
if System.get_env("CI") == "true" do
# Store PLTs in cacheable directory for CI
[plt_local_path: "priv/plts", plt_core_path: "priv/plts"] ++ opts
else
opts
end
end
defp aliases do
[
setup: ["deps.get", "cmd --cd assets npm ci"],
"assets.deploy": [
"cmd --cd assets npm run deploy",
"esbuild default --minify",
"phx.digest"
],
"ecto.setup": ["ecto.create", "ecto.migrate"],
"ecto.reset": ["ecto.drop", "ecto.setup"]
]
end
end