-
Notifications
You must be signed in to change notification settings - Fork 36
/
mix.exs
73 lines (63 loc) · 1.54 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
defmodule Instruments.Mixfile do
use Mix.Project
@version "2.2.0"
@github_url "https://github.com/discord/instruments"
def project do
[
app: :instruments,
name: "Instruments",
version: @version,
elixir: "~> 1.5",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
elixirc_paths: compile_paths(Mix.env()),
deps: deps(),
docs: docs(),
package: package(),
description: description()
]
end
def docs do
[
extras: [
"pages/Overview.md",
"pages/Configuration.md",
"pages/Probes.md",
"pages/Performance.md"
]
]
end
def application do
[
extra_applications: [:logger],
mod: {Instruments.Application, []}
]
end
def compile_paths(:test) do
default_compile_path() ++ ["test/support"]
end
def compile_paths(_), do: default_compile_path()
defp default_compile_path(), do: ["lib"]
defp deps do
[
{:benchee, "~> 1.0", only: :dev},
{:ex_doc, "~> 0.28", only: :dev, runtime: false},
{:recon, "~> 2.5.2"},
{:statix, "~> 1.2.1"},
{:dialyxir, "~> 1.0", only: :dev, runtime: false}
]
end
defp description do
"A small, fast, and unobtrusive metrics library"
end
defp package do
[
name: "instruments",
files: ["lib", "pages", "README*", "LICENSE", "mix.exs"],
maintainers: ["Discord Core Infrastructure"],
licenses: ["MIT"],
source_url: @github_url,
links: %{"GitHub" => @github_url}
]
end
end