-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmix.exs
More file actions
185 lines (174 loc) · 4.59 KB
/
mix.exs
File metadata and controls
185 lines (174 loc) · 4.59 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
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
defmodule Haytni.MixProject do
use Mix.Project
@version "0.7.0"
defp elixirc_paths(:test), do: ~W[lib test/support]
defp elixirc_paths(_), do: ~W[lib]
def project do
[
app: :haytni,
docs: docs(),
version: @version,
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
deps: deps(),
dialyzer: [plt_add_apps: ~W[mix ex_unit]a],
name: "Haytni",
source_url: "https://github.com/julp/haytni",
elixirc_paths: elixirc_paths(Mix.env()),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test,
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: ~W[logger]a,
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:gettext, "~> 0.20"},
{:ecto_sql, "~> 3.7"},
{:phoenix, "~> 1.7"},
{:phoenix_view, "~> 2.0"},
{:phoenix_ecto, "~> 4.5"},
{:phoenix_html_helpers, "~> 1.0"},
{:phoenix_html, "~> 4.1", override: true},
{:ex_doc, "~> 0.25", only: :dev, runtime: false},
# jason is "optional" to phoenix and bamboo
{:jason, "~> 1.2"},
{:dialyxir, "~> 1.0", only: ~W[dev test]a, runtime: false},
{:ecto_network, "~> 1.3", only: :test}, # required by plugin: trackable with PostgreSQL
{:excoveralls, "~> 0.14", only: :test},
#{:credo, "~> 1.4", only: ~W[dev test]a, runtime: false},
#{:sobelow, "~> 0.10", only: :test},
#{:myxql, ">= 0.0.0", only: :test},
{:postgrex, ">= 0.0.0", only: :test},
{:phoenix_live_view, "~> 1.0"},
{:floki, ">= 0.30.0", only: :test},
{:expassword, "~> 0.2"},
{:expassword_bcrypt, "~> 0.2", only: :test},
]
end
defp description do
"A flexible authentication (and more) solution for Phoenix"
end
defp package do
[
files: ~W[lib priv mix.exs README* CHANGELOG*],
licenses: ~W[BSD],
links: %{"GitHub" => "https://github.com/julp/haytni"}
]
end
defp docs do
[
source_ref: @version,
extras: extras(),
groups_for_extras: groups_for_extras(),
groups_for_modules: groups_for_modules()
]
end
defp extras do
Path.wildcard("guides/**/*.md")
end
defp groups_for_extras do
[
Installation: "guides/installation.md",
"How to": ~r"guides/howto/.*\.md",
]
end
defp groups_for_modules do
[
#Haytni
#Haytni.Mail
#Haytni.Plugin
#Haytni.Gettext
#Haytni.Token
Plugins: [
Haytni.AuthenticablePlugin,
Haytni.ConfirmablePlugin,
Haytni.LockablePlugin,
Haytni.RecoverablePlugin,
Haytni.RegisterablePlugin,
Haytni.RememberablePlugin,
Haytni.TrackablePlugin,
Haytni.PasswordPolicyPlugin,
Haytni.InvitablePlugin,
Haytni.LiveViewPlugin,
Haytni.ClearSiteDataPlugin,
Haytni.AnonymizationPlugin,
Haytni.LastSeenPlugin,
Haytni.EncryptedEmailPlugin,
Haytni.RolablePlugin,
],
Authenticable: [
Haytni.AuthenticablePlugin,
],
Confirmable: [
Haytni.ConfirmablePlugin,
Haytni.ConfirmableEmail,
],
Lockable: [
Haytni.LockablePlugin,
Haytni.LockableEmail,
],
Recoverable: [
Haytni.RecoverablePlugin,
Haytni.Recoverable.PasswordChange,
Haytni.RecoverableEmail,
],
Registerable: [
Haytni.RegisterablePlugin,
],
PasswordPolicy: [
Haytni.PasswordPolicyPlugin,
Haytni.PasswordPolicyPlugin.Class,
],
Rememberable: [
Haytni.RememberablePlugin,
],
Trackable: [
Haytni.TrackablePlugin,
Haytni.TrackablePlugin.QueryHelpers,
],
Invitable: [
Haytni.InvitablePlugin,
Haytni.InvitableEmail,
Haytni.InvitablePlugin.QueryHelpers,
],
LiveView: [
Haytni.LiveViewPlugin,
],
ClearSiteData: [
Haytni.ClearSiteDataPlugin,
],
Anonymization: [
Haytni.AnonymizationPlugin,
],
LastSeen: [
Haytni.LastSeenPlugin,
],
EncryptedEmail: [
Haytni.EncryptedEmailPlugin,
],
Rolable: [
Haytni.RolablePlugin,
HaytniWeb.RolablePlugin.RoleRestrictedPlug,
],
Helpers: [
Haytni.Params,
Haytni.Helpers,
HaytniWeb.Helpers,
HaytniWeb.Shared,
],
]
end
end