-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
84 lines (73 loc) · 1.82 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 GuardianJwks.MixProject do
use Mix.Project
@version "2.0.0"
def project do
[
app: :guardian_jwks,
version: @version,
name: "Guardian JWKS",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
consolidate_protocols: Mix.env() != :test,
description: description(),
package: package(),
deps: deps(),
source_ref: "v#{@version}",
source_url: "https://github.com/ReelCoaches/guardian_jwks",
docs: docs_config(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
]
]
end
def application do
[
extra_applications: [:logger]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:guardian, "~> 2.0"},
{:jason, "~> 1.1"},
{:tesla, "~> 1.2"},
{:hackney, "~> 1.14"},
# docs
{:ex_doc, "~> 0.19", only: :dev, runtime: false},
# linters & coverage
{:credo, "~> 1.0", only: [:dev, :test], runtime: false},
{:excoveralls, "~> 0.10", only: :test},
# tests
{:mox, "~> 1.0", only: :test}
]
end
defp description do
"""
JWKS (JSON Web Keys Set) support for Guardian 1.0
"""
end
defp package do
[
files: ["lib", "mix.exs", "README.md", "LICENSE", "CHANGELOG.md"],
licenses: ["Apache 2.0"],
links: %{
"GitHub" => "https://github.com/ReelCoaches/guardian_jwks",
"Docs" => "http://hexdocs.pm/guardian_jwks"
}
]
end
defp docs_config do
[
extras: [
{"CHANGELOG.md", [title: "Changelog"]}
],
main: "GuardianJwks"
]
end
end