forked from discord/zen_monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
98 lines (90 loc) · 2.22 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
defmodule ZenMonitor.Mixfile do
use Mix.Project
def project do
[
app: :zen_monitor,
name: "ZenMonitor",
version: "2.1.0",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps(),
docs: docs(),
elixirc_paths: elixirc_paths(Mix.env()),
package: package()
]
end
def application do
[
extra_applications: [:logger, :instruments],
mod: {ZenMonitor.Application, []}
]
end
defp aliases do
[
test: "test --no-start"
]
end
defp deps do
[
{:gen_stage, "~> 1.0"},
{:instruments, "~> 2.1"},
{:gen_registry, "~> 1.0"},
{:ex_doc, "~> 0.27.3", only: :dev, runtime: false},
{:dialyxir, "~> 1.0", only: :dev, runtime: false}
]
end
defp docs do
[
name: "ZenMonitor",
extras: ["README.md"],
main: "readme",
source_url: "https://github.com/discordapp/zen_monitor",
groups_for_modules: [
"Programmer Interface": [
ZenMonitor
],
"Local ZenMonitor System": [
ZenMonitor.Local,
ZenMonitor.Local.State,
ZenMonitor.Local.Connector,
ZenMonitor.Local.Connector.State,
ZenMonitor.Local.Dispatcher,
ZenMonitor.Local.Tables
],
"Proxy ZenMonitor System": [
ZenMonitor.Proxy,
ZenMonitor.Proxy.State,
ZenMonitor.Proxy.Batcher,
ZenMonitor.Proxy.Batcher.State,
ZenMonitor.Proxy.Tables
],
"Supervisors / OTP / Utilities": [
ZenMonitor.Application,
ZenMonitor.Supervisor,
ZenMonitor.Local.Supervisor,
ZenMonitor.Proxy.Supervisor,
ZenMonitor.Metrics,
ZenMonitor.Truncator
]
]
]
end
defp elixirc_paths(:test) do
elixirc_paths(:any) ++ ["test/support"]
end
defp elixirc_paths(_) do
["lib"]
end
defp package() do
[
name: :zen_monitor,
description: "ZenMonitor provides efficient monitoring of remote processes.",
maintainers: ["Discord Core Infrastructure"],
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/discordapp/zen_monitor"
}
]
end
end