-
Notifications
You must be signed in to change notification settings - Fork 3
/
mix.exs
106 lines (96 loc) · 2.53 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
98
99
100
101
102
103
104
105
106
defmodule PrimaAuth0Ex.MixProject do
use Mix.Project
@source_url "https://github.com/primait/auth0_ex"
@version "0.9.0"
def project do
[
app: :prima_auth0_ex,
version: @version,
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
aliases: aliases(),
dialyzer: [
plt_add_apps: [:mix, :plug, :absinthe, :absinthe_plug, :ex_unit],
plt_add_deps: :app_tree,
ignore_warnings: ".dialyzerignore",
list_unused_filters: true
],
docs: docs(),
package: package()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
mod: {PrimaAuth0Ex.Application, []},
extra_applications: [:crypto, :logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:jason, "~> 1.0"},
{:joken, "~> 2.4"},
{:joken_jwks, "~> 1.4"},
{:redix, "~> 0.9 or ~> 1.0"},
{:telepoison, "~> 2.0"},
{:telemetry, "~> 1.0"},
{:timex, "~> 3.6"},
{:ex_aws_dynamo, "~> 4.0"}
] ++ optional_deps() ++ dev_deps()
end
defp optional_deps do
[
{:absinthe, "~> 1.6", optional: true},
{:absinthe_plug, "~> 1.5", optional: true},
{:plug, "~> 1.10", optional: true}
]
end
defp dev_deps do
[
{:bypass, "~> 2.1.0", only: :test},
{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.1", only: [:dev, :test], runtime: false},
{:ex_doc, ">= 0.25.3", only: :dev, runtime: false},
{:hammox, "~> 0.5", only: :test},
{:stream_data, "~> 1.0", only: :test}
]
end
defp aliases do
[
check: [
"format --check-formatted",
"credo -a --strict",
"dialyzer"
],
keygen: [
"run --no-start -e ':crypto.strong_rand_bytes(32) |> Base.encode64() |> IO.puts()'"
]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp docs do
[
extras: [
"LICENSE.md": [title: "License"],
"README.md": [title: "Overview"]
],
main: "readme",
source_url: @source_url,
source_ref: @version,
formatters: ["html"]
]
end
defp package do
[
description: "An easy to use library to authenticate machine-to-machine communications through Auth0.",
name: "prima_auth0_ex",
maintainers: ["Prima"],
licenses: ["MIT"],
links: %{"GitHub" => @source_url}
]
end
end