Packages

The fastest way to set up OAuth 2.0 server in your Phoenix app

Retired package: Release invalid - Does not work in releases

Current section

Files

Jump to

mix.exs

defmodule PhoenixOauth2Provider.Mixfile do
use Mix.Project
@version "0.5.0"
def project do
[
app: :phoenix_oauth2_provider,
version: @version,
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env),
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
compilers: [:phoenix] ++ Mix.compilers,
preferred_cli_env: [credo: :test, ex_doc: :test],
deps: deps(),
# Hex
description: "The fastest way to set up OAuth 2.0 server in your Phoenix app",
package: package(),
# Docs
name: "PhoenixOauth2Provider",
docs: [
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
def application do
[extra_applications: extra_applications(Mix.env)]
end
defp extra_applications(:test), do: [:postgrex, :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.0"},
{:phoenix, "~> 1.4"},
{:phoenix_html, "~> 2.0"},
{:phoenix_ecto, "~> 4.0.0", only: [:test, :dev]},
{:credo, "~> 0.10", only: [:dev, :test]},
{:jason, "~> 1.0", only: [:dev, :test]},
{:ex_doc, ">= 0.0.0", only: :dev},
{:ecto_sql, "~> 3.0.0", only: [:test]},
{:plug_cowboy, "~> 2.0", only: [:test]},
{:postgrex, "~> 0.14.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
end