-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmix.exs
More file actions
78 lines (70 loc) · 1.83 KB
/
mix.exs
File metadata and controls
78 lines (70 loc) · 1.83 KB
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
defmodule SgiathAuth.MixProject do
use Mix.Project
@version "0.1.0"
def project do
[
app: :sgiath_auth,
version: @version,
elixir: "~> 1.19",
elixirc_options: [warnings_as_errors: true],
start_permanent: Mix.env() == :prod,
deps: deps(),
name: "Sgiath Auth",
source_url: "https://github.com/sgiath/auth",
homepage_url: "https://sgiath.dev/libraries#auth",
description: """
Opinionated authentication library for Phoenix applications
""",
package: package(),
docs: docs()
]
end
def application do
[
extra_applications: [:logger]
]
end
def cli do
[
preferred_envs: ["test.watch": :test]
]
end
defp deps do
[
{:phoenix, "~> 1.8"},
{:phoenix_live_view, "~> 1.1"},
{:req, "~> 0.5"},
{:joken, "~> 2.6"},
{:joken_jwks, "~> 1.7"},
{:posthog, "~> 2.1", optional: true},
# testing and development
{:ex_check, "~> 0.16", only: [:dev, :test], runtime: false},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:mix_test_watch, "~> 1.4", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.40", only: :dev, runtime: false, warn_if_outdated: true}
]
end
# Documentation
defp package do
[
name: "sgiath_auth",
maintainers: ["sgiath <sgiath@sgiath.dev>"],
files: ~w(lib .formatter.exs mix.exs usage-rules.md README* LICENSE*),
licenses: ["WTFPL"],
links: %{
"GitHub" => "https://github.com/sgiath/auth"
}
]
end
defp docs do
[
authors: ["sgiath <sgiath@sgiath.dev>"],
main: "readme",
extras: ["README.md", "usage-rules.md"],
api_reference: false,
formatters: ["html"],
source_ref: "v#{@version}",
source_url: "https://github.com/sgiath/auth"
]
end
end