-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
84 lines (74 loc) · 1.73 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
defmodule LoggerHTTP.MixProject do
use Mix.Project
@version "0.1.0"
@url "https://github.com/A-World-For-Us/logger_http"
def project do
[
app: :logger_http,
version: @version,
elixir: "~> 1.15",
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps(),
docs: docs(),
# Hex
description: "An HTTP logger handler for Elixir applications",
package: package(),
# Dialyzer
dialyzer: [
# Put the project-level PLT in the priv/ directory (instead of the default _build/ location)
# for the CI to be able to cache it between builds
plt_local_path: "priv/plts/project.plt",
plt_core_path: "priv/plts/core.plt"
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger],
mod: {LoggerHTTP.Application, []}
]
end
def cli do
[
preferred_envs: [
dialyzer: :test
]
]
end
defp aliases do
[
release: [
"git_ops.release --yes"
]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:nimble_options, "~> 1.0"},
{:req, "~> 0.5", optional: true},
{:ex_doc, "~> 0.31", only: :dev, runtime: false},
{:git_ops, "~> 2.6", only: :dev, runtime: false},
{:dialyxir, "~> 1.4", only: :test, runtime: false}
]
end
defp docs do
[
main: "LoggerHTTP",
extras: ["CHANGELOG.md"],
source_ref: "v#{@version}",
source_url: @url
]
end
defp package do
[
licenses: ["MIT"],
links: %{
"GitHub" => @url,
"Changelog" => "#{@url}/blob/#{@version}/CHANGELOG.md"
}
]
end
end