forked from pow-auth/pow_assent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
89 lines (80 loc) · 2.3 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
defmodule PowAssent.MixProject do
use Mix.Project
@version "0.4.14"
def project do
[
app: :pow_assent,
version: @version,
elixir: "~> 1.11",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
compilers: Mix.compilers(),
deps: deps(),
# Hex
description: "Multi-provider support for Pow",
package: package(),
# Docs
name: "PowAssent",
docs: docs()
]
end
def application do
[
extra_applications: [:logger, :ssl, :inets]
]
end
defp deps do
[
{:pow, git: "https://github.com/pow-auth/pow.git"},
{:assent, "~> 0.1.2 or ~> 0.2.0"},
{:ecto, "~> 2.2 or ~> 3.0"},
{:phoenix, ">= 1.3.0 and < 1.8.0"},
{:phoenix_html, ">= 2.0.0 and <= 4.0.0"},
{:plug, ">= 1.5.0 and < 2.0.0", optional: true},
{:phoenix_ecto, "~> 4.0", only: [:dev, :test]},
{:credo, "~> 1.1", only: [:dev, :test]},
{:jason, "~> 1.0", only: [:dev, :test]},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:ecto_sql, "~> 3.1", only: :test},
{:postgrex, "~> 0.14", only: :test},
{:ssl_verify_fun, "~> 1.1", only: :test},
{:test_server, "~> 0.1.0", only: :test}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp package do
[
maintainers: ["Dan Schultzer"],
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/pow-auth/pow_assent",
"Sponsor" => "https://github.com/sponsors/danschultzer"
},
files: ~w(lib LICENSE mix.exs README.md)
]
end
defp docs do
[
source_ref: "v#{@version}",
main: "README",
canonical: "http://hexdocs.pm/pow_assent",
source_url: "https://github.com/pow-auth/pow_assent",
logo: "assets/logo.svg",
assets: "assets",
extras: [
"README.md": [filename: "README"],
"CHANGELOG.md": [filename: "CHANGELOG"],
"guides/set_up_pow.md": [],
"guides/capture_access_token.md": [],
"guides/legacy_migration.md": [],
"guides/api.md": [],
"guides/dynamic_strategy_configuration.md": []
],
groups_for_modules: [
Ecto: ~r/^PowAssent.Ecto/,
Phoenix: ~r/^PowAssent.Phoenix/
]
]
end
end