-
Notifications
You must be signed in to change notification settings - Fork 2
/
mix.exs
114 lines (106 loc) · 3.09 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
107
108
109
110
111
112
113
114
defmodule Identity.MixProject do
use Mix.Project
@version "0.0.1-beta.0"
@source_url "https://github.com/aj-foster/identity"
def project do
[
app: :identity,
version: @version,
elixir: "~> 1.13",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
name: "Identity",
source_url: "https://github.com/aj-foster/identity",
homepage_url: "https://github.com/aj-foster/identity",
aliases: aliases(),
deps: deps(),
docs: docs(),
package: package()
]
end
def aliases do
[
test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"]
]
end
def application do
if Mix.env() == :test do
[
extra_applications: [:logger, :ranch, :ex_machina, :plug, :plug_crypto],
mod: {Identity.Test.Application, []}
]
else
[
extra_applications: [:logger]
]
end
end
defp deps do
[
{:bamboo, "~> 2.0", optional: true},
{:bcrypt_elixir, "~> 3.0"},
{:ecto_sql, "~> 3.0"},
{:eqrcode, "~> 0.1.10", optional: true},
{:ex_doc, "~> 0.28", only: :dev},
{:ex_machina, "~> 2.7.0", only: [:dev, :test]},
{:jason, "~> 1.0", optional: true},
{:mime, "~> 1.0 or ~> 2.0", optional: true},
{:mix_test_watch, "~> 1.0", only: [:test], runtime: false},
{:nimble_totp, "~> 1.0", optional: true},
{:phoenix, "~> 1.7", optional: true},
{:phoenix_ecto, "~> 4.0", optional: true},
{:phoenix_live_view, "~> 0.17", optional: true},
{:phoenix_swoosh, "~> 1.0", optional: true},
{:plug_cowboy, "~> 2.0", optional: true},
{:plug_crypto, "~> 2.0"},
{:postgrex, ">= 0.0.0"},
{:swoosh, "~> 1.4", optional: true},
{:ua_parser, "~> 1.8"},
{:ueberauth, "~> 0.10", optional: true}
]
end
defp docs do
[
main: "readme",
extras: [
"README.md": [title: "Overview"],
"guides/getting-started.md": [title: "Getting Started"],
"guides/progressive-replacement.md": [title: "Progressive Replacement"],
LICENSE: [title: "License"]
],
groups_for_functions: [
User: &(&1[:section] == :user),
Login: &(&1[:section] == :login),
Email: &(&1[:section] == :email),
Session: &(&1[:section] == :session),
"Two-Factor": &(&1[:section] == :mfa),
"Password Reset": &(&1[:section] == :password_reset),
OAuth: &(&1[:section] == :oauth)
],
groups_for_modules: [
Schemas: [Identity.User, ~r/Identity.Schema/],
Notifiers: ~r/Identity.Notifier/,
Internal: [Identity.Changeset, Identity.Token]
]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp package do
[
description: "Rapid authentication for new Elixir projects",
files: [
"guides",
"lib",
"priv",
"LICENSE",
"mix.exs",
"README.md"
],
licenses: ["MIT"],
links: %{"GitHub" => @source_url},
maintainers: ["AJ Foster"],
organization: "ajf"
]
end
end