-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
129 lines (121 loc) · 3.53 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
defmodule DiceMagick.MixProject do
use Mix.Project
@version "0.1.1"
def project do
[
app: :dice_magick,
version: @version,
elixir: "~> 1.5",
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
source_url: "https://github.com/ngscheurich/dice_magick",
homepage_url: "https://www.dice_magick.app",
# Docs
name: "DiceMagick",
docs: docs()
]
end
def application do
[
mod: {DiceMagick.Application, []},
extra_applications: [:logger, :runtime_tools, :os_mon]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:assert_identity, "~> 0.1.0"},
{:cowlib, "~> 2.8.0", override: true},
{:dialyxir, "~> 1.0", only: [:dev], runtime: false},
{:ecto_enum, "~> 1.4"},
{:ecto_sql, "~> 3.1"},
{:ex_doc, "~> 0.21", only: :dev, runtime: false},
{:ex_machina, "~> 2.4"},
{:floki, ">= 0.0.0", only: :test},
{:gettext, "~> 0.11"},
{:google_api_sheets, "~> 0.22"},
{:goth, "~> 1.2.0"},
{:httpoison, "~> 1.6"},
{:jason, "~> 1.1"},
{:nimble_csv, "~> 0.6"},
{:nimble_parsec, "~> 0.5"},
{:nostrum, git: "https://github.com/Kraigie/nostrum.git"},
{:phoenix, "~> 1.5.0"},
{:phoenix_ecto, "~> 4.0"},
{:phoenix_html, "~> 2.11"},
{:phoenix_live_dashboard, "~> 0.1"},
{:phoenix_live_reload, "~> 1.2", only: :dev},
{:phoenix_live_view, "~> 0.12.1"},
{:phoenix_pubsub, "~> 2.0"},
{:plug_cowboy, "~> 2.2"},
{:postgrex, ">= 0.0.0"},
{:sentry, "~> 7.0"},
{:telemetry_metrics, "~> 0.4"},
{:telemetry_poller, "~> 0.4"},
{:timex, "~> 3.0"},
{:ueberauth_discord, "~> 0.5"}
]
end
defp docs do
[
main: "DiceMagick",
authors: ["N. G. Scheurich <nick@scheurich.me>"],
logo: "logo.png",
groups_for_modules: [
DiceMagick: [
DiceMagick.Accounts,
DiceMagick.Accounts.User,
DiceMagick.Characters,
DiceMagick.Characters.Character,
DiceMagick.Characters.Supervisor,
DiceMagick.Characters.Worker,
DiceMagick.Characters.Worker.State,
DiceMagick.Rolls,
DiceMagick.Rolls.Roll,
DiceMagick.Rolls.Result
],
"Discord Bot": [
DiceMagick.Discord.Command,
DiceMagick.Discord.Create,
DiceMagick.Discord.Commands.Roll,
DiceMagick.Discord.Sync
],
"Data Sources": [
DiceMagick.Sources.Source,
DiceMagick.Sources.GoogleSheets,
DiceMagick.Sources.Test,
DiceMagick.GoogleSheets.HTTPClient
],
"Web Interface": [
DiceMagickWeb.Auth,
DiceMagickWeb.CharacterController,
DiceMagickWeb.SessionController,
DiceMagickWeb.ErrorHelpers,
DiceMagickWeb.Router.Helpers
],
Enums: [
DataFormatEnum,
SourceTypeEnum
]
],
nest_modules_by_prefix: [
DiceMagick.Characters,
DiceMagick.GoogleSheets,
DiceMagick.Sources,
DiceMagickWeb
],
extras: ["README.md"]
]
end
defp aliases do
[
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
test: ["ecto.create --quiet", "ecto.migrate", "test"]
]
end
end