forked from spandex-project/spandex_phoenix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
76 lines (68 loc) · 1.88 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
defmodule SpandexPhoenix.MixProject do
use Mix.Project
@version "1.0.6"
@source_url "https://github.com/spandex-project/spandex_phoenix"
def project do
[
app: :spandex_phoenix,
version: @version,
elixir: "~> 1.6",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: compilers(Mix.env()),
start_permanent: Mix.env() == :prod,
package: package(),
docs: docs(),
deps: deps(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [coveralls: :test, "coveralls.circle": :test]
]
end
def application do
[
extra_applications: [:logger]
]
end
defp package do
[
description: "Tools for integrating Phoenix with Spandex.",
name: :spandex_phoenix,
maintainers: ["Greg Mefford"],
licenses: ["MIT"],
links: %{
"Changelog" => "https://hexdocs.pm/spandex_phoenix/changelog.html",
"GitHub" => @source_url,
"Sponsor" => "https://github.com/sponsors/GregMefford"
}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp compilers(:test), do: [:phoenix] ++ Mix.compilers()
defp compilers(_), do: Mix.compilers()
defp docs do
[
extras: [
"CHANGELOG.md",
{:"LICENSE.md", [title: "License"]},
{:"README.md", [title: "Overview"]}
],
main: "readme",
source_url: @source_url,
source_ref: "v#{@version}",
formatters: ["html"]
]
end
defp deps do
[
{:excoveralls, "~> 0.14", only: :test},
{:ex_doc, "~> 0.25", only: :dev},
{:jason, "~> 1.0", only: [:dev, :test]},
{:optimal, "~> 0.3"},
{:phoenix, "~> 1.0", optional: true},
{:phoenix_html, "~> 3.0", only: [:dev, :test]},
{:plug, "~> 1.3"},
{:spandex, "~> 2.2 or ~> 3.0"},
{:telemetry, "~> 0.4 or ~> 1.0", optional: true}
]
end
end