forked from recursiveGecko/race_bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
157 lines (151 loc) · 4.78 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
defmodule F1Bot.MixProject do
use Mix.Project
def project do
[
app: :f1_bot,
version: "0.6.0",
elixir: "~> 1.14",
elixirc_paths: elixirc_paths(Mix.env()),
source_url: "https://github.com/recursiveGecko/race_bot",
homepage_url: "https://github.com/recursiveGecko/race_bot",
compilers: Mix.compilers() ++ [:surface],
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps(),
docs: docs(),
dialyzer: [
plt_add_deps: :apps_direct,
plt_add_apps: [:nostrum, :mix],
list_unused_filters: true
],
releases: [
f1bot: [
include_executables_for: [:unix],
applications: [
runtime_tools: :permanent,
observer: :load,
nostrum: :load
],
strip_beams: false
]
]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger, :tools],
mod: {F1Bot.Application, []}
]
end
defp docs do
[
main: "readme",
extras: [
"README.md",
"LICENSE.md"
],
groups_for_modules: [
"Live Timing API": ~r/^F1Bot.ExternalApi.SignalR/,
"F1 Session (boundary)": ~r/^F1Bot.F1Session.Server/,
"F1 Session (functional)": ~r/^F1Bot.F1Session/,
"Output servers": ~r/^F1Bot.Output/,
Plotting: ~r/^F1Bot.Plotting/,
"Other external APIs": ~r/^F1Bot.ExternalApi/
],
groups_for_functions: [],
source_ref: "master",
nest_modules_by_prefix: [
F1Bot.F1Session,
F1Bot.Output,
F1Bot.Plotting,
F1Bot.ExternalApi.Discord,
F1Bot.ExternalApi.Twitter,
F1Bot.ExternalApi.SignalR
]
]
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.
defp aliases do
[
setup: ["deps.get", "ecto.setup", "assets.setup", "assets.build"],
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"],
"assets.setup": [
"tailwind.install --if-missing",
"esbuild.install --if-missing",
"cmd --cd assets npm install --ignore-scripts"
],
"assets.build": ["hooks.build", "tailwind default", "esbuild default"],
"assets.deploy": [
"hooks.build",
"tailwind default --minify",
"esbuild default --minify",
"phx.digest"
],
# Builds Surface UI hooks -> ./assets/js/_hooks
"hooks.build": ["compile"]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
# {:dep_from_hexpm, "~> 0.3.0"},
# {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
{:gun, "~> 2.0", override: true},
{:cowlib, "~> 2.12", override: true},
{:jason, "~> 1.4"},
{:finch, "~> 0.14.0"},
{
:nostrum,
# Includes https://github.com/Kraigie/nostrum/pull/522
git: "https://github.com/Kraigie/nostrum",
ref: "4fabfc5bf59878fdde118acd686f6a5e075b5f8e",
runtime: false
},
{:certifi, "~> 2.9"},
{:typed_struct, "~> 0.3.0"},
{:timex, "~> 3.7"},
{:nimble_parsec, "~> 1.2"},
{:contex, "~> 0.4.0"},
{:mogrify, "~> 0.9.2"},
{:gnuplot, "~> 1.22"},
{:extwitter, "~> 0.14.0"},
{:oauther, "~> 1.3"},
{:scribe, "~> 0.10.0", only: :dev},
{:kino, "~> 0.8.1", only: :dev},
{:vega_lite, "~> 0.1.6", only: :dev},
{:dialyxir, "~> 1.2", only: [:dev], runtime: false},
{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.29", runtime: false, override: true},
{:tailwind, "~> 0.1.9", runtime: Mix.env() == :dev},
{:phoenix, "~> 1.7", override: true},
{:phoenix_pubsub, "~> 2.1"},
{:phoenix_ecto, "~> 4.4"},
{:phoenix_html, "~> 3.3"},
{:phoenix_live_reload, "~> 1.4", only: :dev},
{:phoenix_live_dashboard, "~> 0.7.2"},
{:phoenix_live_view, "~> 0.18.15"},
{:surface, "~> 0.9.4"},
{:ecto_sql, "~> 3.9"},
{:ecto_sqlite3, "~> 0.9.1"},
{:floki, ">= 0.34.0", only: :test},
{:esbuild, "~> 0.6.1", runtime: Mix.env() == :dev},
{:telemetry_metrics, "~> 0.6.1"},
{:telemetry_poller, "~> 1.0"},
{:plug_cowboy, "~> 2.6"},
{:heroicons, "~> 0.5.2"},
# {:flame_on, "~> 0.5.2", only: :dev},
{:eflame, "~> 1.0"},
{:rexbug, ">= 2.0.0-rc1"}
]
end
end