-
Notifications
You must be signed in to change notification settings - Fork 27
/
mix.exs
72 lines (66 loc) · 1.72 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
defmodule Logster.MixProject do
use Mix.Project
def project do
[
app: :logster,
version: "2.0.0-rc.3",
name: "Logster",
description:
"Easily parsable single-line plain text and JSON logger for Plug and Phoenix applications",
package: package(),
source_url: "https://github.com/navinpeiris/logster",
homepage_url: "https://github.com/navinpeiris/logster",
elixir: "~> 1.15",
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
docs: [
main: "Logster",
api_reference: false,
extras: ["UPGRADE_GUIDE.md"]
],
test_coverage: [
summary: [threshold: 100]
],
preferred_cli_env: [ci: :test]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:plug, "~> 1.0"},
{:jason, "~> 1.1"},
{:earmark, "~> 1.0", only: :dev},
{:ex_doc, "~> 0.14", only: :dev},
{:mix_test_watch, "~> 1.0", only: :dev},
{:credo, "~> 1.0", only: [:dev, :test], runtime: false},
{:ex_unit_notifier, "~> 1.2", only: :test}
]
end
defp package do
[
files: ["lib", "mix.exs", "README*", "LICENSE*"],
maintainers: ["Navin Peiris"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/navinpeiris/logster"}
]
end
defp aliases do
[
ci: [
"compile --warnings-as-errors --force",
"format --check-formatted",
"test --cover --raise",
"credo"
]
]
end
end