-
Notifications
You must be signed in to change notification settings - Fork 10
/
mix.exs
82 lines (72 loc) · 1.95 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
defmodule Peep.MixProject do
use Mix.Project
@version "3.3.1"
def project do
[
app: :peep,
version: @version,
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps(),
docs: docs(),
description: description(),
package: package(),
elixirc_paths: elixirc_paths(Mix.env())
]
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]
]
end
defp aliases do
[
compile: ["format", "compile"]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:nimble_options, "~> 1.1"},
{:telemetry_metrics, "~> 1.0"},
# testing, docs, & linting
{:bandit, "~> 1.6", only: [:test], runtime: false},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:inch_ex, "~> 2.0", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.34", only: [:dev], runtime: false},
{:nimble_parsec, "~> 1.4", only: [:dev, :test], runtime: false},
{:plug_cowboy, "~> 2.7", only: [:test]},
# Optional dependencies
{:plug, "~> 1.16", optional: true}
]
end
defp docs do
[
main: "Peep",
canonical: "http://hexdocs.pm/peep",
source_url: "https://github.com/rkallos/peep",
source_ref: "v#{@version}",
extras: [],
groups_for_modules: [
Bucketing: [~r/Peep.Buckets/]
]
]
end
defp description do
"""
Provides an opinionated Telemetry.Metrics reporter that supports StatsD and Prometheus.
"""
end
defp package do
[
maintainers: ["Richard Kallos", "Fabien Lamarche-Filion"],
licenses: ["Apache-2.0"],
links: %{"GitHub" => "https://github.com/rkallos/peep"}
]
end
end