-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmix.exs
99 lines (91 loc) · 2.42 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
defmodule RobotRaceWeb.MixProject do
use Mix.Project
@source_url "https://github.com/nwjlyons/robot_race_web"
def project do
[
app: :robot_race_web,
version: "0.1.0",
elixir: "~> 1.16",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
docs: docs()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger, :crypto],
mod: {RobotRaceWeb.Application, []}
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:phoenix, "~> 1.7.14"},
{:phoenix_view, "~> 2.0"},
{:phoenix_live_view, "~> 1.0.0-rc.7"},
{:phoenix_live_reload, "~> 1.5.3", only: :dev},
{:phoenix_pubsub, "~> 2.1"},
{:esbuild, "~> 0.8.2", runtime: Mix.env() == :dev},
{:jason, "~> 1.0"},
{:bandit, "~> 1.4"},
{:ecto, "~> 3.12.4"},
{:phoenix_ecto, "~> 4.4"},
{:ex_doc, "~> 0.24", runtime: false},
{:nanoid, "~> 2.0"},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:credo_contrib, "~> 0.2.0", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0", only: [:dev], runtime: false},
{:typed_struct, "~> 0.3.0", runtime: false}
]
end
defp docs() do
[
api_reference: false,
extras: [],
source_url: @source_url,
main: "RobotRace.Game",
formatters: ["html"],
output: "priv/static/doc",
groups_for_modules: groups_for_modules()
]
end
defp groups_for_modules() do
[
Structs: [
RobotRace.Game,
RobotRace.GameConfig,
RobotRace.Robot,
RobotRace.Id,
RobotRace.GameId,
RobotRace.RobotId
],
Views: [
RobotRaceWeb.GameController,
RobotRaceWeb.GameLive,
RobotRaceWeb.LobbyLive
],
Forms: [
RobotRaceWeb.JoinGameForm
],
Components: [
RobotRaceWeb.Components
],
GenServers: [
RobotRaceWeb.GameServer
]
]
end
defp aliases do
[
"assets.deploy": ["esbuild default --minify", "phx.digest"],
"deps.sync": ["deps.get", "deps.clean --unlock --unused"],
lint: ["format", "compile"]
]
end
end