-
Notifications
You must be signed in to change notification settings - Fork 10
/
mix.exs
97 lines (85 loc) · 2.1 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
85
86
87
88
89
90
91
92
93
94
95
96
97
defmodule GuardianPhoenix.MixProject do
use Mix.Project
@name :guardian_phoenix
@version "2.0.1"
@elixir_version "~> 1.7"
@source_url "https://github.com/ueberauth/guardian_phoenix"
def project do
production? = Mix.env() == :prod
[
app: @name,
version: @version,
elixir: @elixir_version,
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
build_embedded: production?,
start_permanent: production?,
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
"coveralls.html": :test,
"coveralls.json": :test
],
xref: [exclude: [:phoenix]],
dialyzer: [
plt_add_deps: :transitive,
plt_add_apps: [:mix],
flags: [:race_conditions, :no_opaque]
],
# Hex
description: "Guardian & Phoenix integration",
package: package(),
# Docs
name: "Guardian.Phoenix",
docs: docs()
]
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"},
{:phoenix, "~> 1.6"},
# Test
{:jason, "~> 1.1", only: [:dev, :test], runtime: false},
# Tools
{:credo, ">= 0.0.0", only: [:dev, :test], runtime: false},
{:dialyxir, ">= 1.0.0-rc4", only: [:dev], runtime: false},
{:ex_doc, ">= 0.0.0", only: [:dev], runtime: false},
{:excoveralls, ">= 0.0.0", only: [:test], runtime: false},
{:inch_ex, ">= 0.0.0", only: [:dev], runtime: false}
]
end
defp package do
[
name: @name,
files: [
"lib",
"mix.exs",
"README*",
"LICENSE*"
],
maintainers: [
"Daniel Neighman",
"Sonny Scroggin",
"Sean Callan",
"Yordis Prieto"
],
licenses: ["MIT"],
links: %{"GitHub" => @source_url}
]
end
defp docs do
[
main: "readme",
homepage_url: @source_url,
source_ref: "v#{@version}",
source_url: @source_url,
extras: ["README.md"]
]
end
end