-
Notifications
You must be signed in to change notification settings - Fork 46
/
mix.exs
87 lines (73 loc) · 1.96 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
defmodule UeberauthAuth0.Mixfile do
use Mix.Project
@version "0.4.0"
def project do
[
app: :ueberauth_auth0,
version: @version,
name: "Ueberauth Auth0",
description: description(),
source_url: "https://github.com/sntran/ueberauth_auth0",
homepage_url: "http://hexdocs.pm/ueberauth_auth0",
package: package(),
elixir: "~> 1.4",
deps: deps(),
docs: docs(),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
# Test coverage:
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test,
vcr: :test,
"vcr.delete": :test,
"vcr.check": :test,
"vcr.show": :test
],
# Type checking
dialyzer: [
plt_file: {:no_warn, "priv/plts/dialyzer.plt"}
]
]
end
def application do
[applications: [:logger, :ueberauth, :oauth2]]
end
defp deps do
[
{:ueberauth, "~> 0.6"},
{:oauth2, "~> 2.0"},
# Docs:
{:ex_doc, "~> 0.21", only: :dev},
{:earmark, "~> 1.3", only: :dev},
# Testing:
{:exvcr, "~> 0.10", only: :test},
{:excoveralls, "~> 0.11", only: :test},
# Type checking
{:dialyxir, "~> 1.0.0-rc.6", only: [:dev, :test], runtime: false},
# Lint:
{:credo, "~> 1.1", only: [:dev, :test]}
]
end
defp docs do
[source_ref: "v#{@version}", main: "readme", extras: docs_extras()]
end
defp docs_extras do
["README.md"]
end
defp description do
"An Ueberauth strategy for using Auth0 to authenticate your users."
end
defp package do
[
name: :ueberauth_auth0,
files: ["lib", "mix.exs", "README.md", "LICENSE"],
maintainers: ["Son Tran-Nguyen", "Nikita Sobolev"],
licenses: ["MIT"],
links: %{GitHub: "https://github.com/sntran/ueberauth_auth0"}
]
end
end