forked from danschultzer/phoenix_oauth2_provider
-
Notifications
You must be signed in to change notification settings - Fork 3
/
mix.exs
69 lines (59 loc) · 1.78 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
defmodule PhoenixOauth2Provider.Mixfile do
use Mix.Project
@version "0.5.1"
def project do
[
app: :phoenix_oauth2_provider,
version: @version,
elixir: "~> 1.9",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
compilers: [:phoenix] ++ Mix.compilers(),
deps: deps(),
# Hex
description: "The fastest way to set up OAuth 2.0 server in your Phoenix app",
package: package(),
# Docs
name: "PhoenixOauth2Provider",
docs: docs()
]
end
def application do
[extra_applications: extra_applications(Mix.env())]
end
defp extra_applications(:test), do: [:ecto, :logger]
defp extra_applications(_), do: [:logger]
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:ex_oauth2_provider, "~> 0.5.1"},
{:phoenix, "~> 1.5"},
{:phoenix_html, "~> 3.0.0"},
{:phoenix_ecto, "~> 4.3.0", only: [:test, :dev]},
{:credo, "~> 1.6.0", only: [:dev, :test]},
{:jason, "~> 1.0", only: [:dev, :test]},
{:ex_doc, ">= 0.0.0", only: :dev},
{:ecto_sql, "~> 3.1.0", only: :test},
{:plug_cowboy, "~> 2.6", only: :test},
{:postgrex, "~> 0.15.0", only: :test}
]
end
defp package do
[
maintainers: ["Dan Shultzer", "Benjamin Schultzer"],
licenses: ["MIT"],
links: %{github: "https://github.com/danschultzer/phoenix_oauth2_provider"},
files: ~w(lib LICENSE mix.exs README.md)
]
end
defp docs do
[
source_ref: "v#{@version}",
main: "PhoenixOauth2Provider",
canonical: "http://hexdocs.pm/phoenix_oauth2_provider",
source_url: "https://github.com/danschultzer/phoenix_oauth2_provider",
extras: ["README.md"]
]
end
end