Current section

Files

Jump to
pow_assent mix.exs
Raw

mix.exs

defmodule PowAssent.MixProject do
use Mix.Project
@version "0.1.0-alpha"
def project do
[
app: :pow_assent,
version: @version,
elixir: "~> 1.6",
elixirc_paths: elixirc_paths(Mix.env),
start_permanent: Mix.env() == :prod,
compilers: [:phoenix] ++ 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]
]
end
defp deps do
[
{:pow, "~> 0.1.0-alpha.3"},
{:oauth2, "~> 0.9"},
{:oauther, "~> 1.1"},
{:phoenix_html, "~> 2.11"},
{:phoenix_ecto, "~> 3.3"},
{:ecto, "~> 2.2", optional: true},
{:phoenix, "~> 1.3", optional: true},
{:plug, ">= 1.5.0 and < 1.7.0", optional: true},
{:credo, "~> 0.9.3", only: [:dev, :test]},
{:ex_doc, "~> 0.19.0", only: :dev},
{:postgrex, ">= 0.0.0", only: :test},
{:bypass, "~> 0.8", only: :test},
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp package do
[
maintainers: ["Dan Shultzer"],
licenses: ["MIT"],
links: %{github: "https://github.com/danschultzer/pow_assent"},
files: ~w(lib LICENSE mix.exs README.md)
]
end
defp docs do
[
source_ref: "v#{@version}",
main: "PowAssent",
canonical: "http://hexdocs.pm/pow_assent",
source_url: "https://github.com/danschultzer/pow_assnet",
extras: [
"README.md": [filename: "PowAssent", title: "PowAssent"]
],
groups_for_modules: [
"Ecto": ~r/^PowAssent.Ecto/,
"Phoenix": ~r/^PowAssent.Phoenix/,
"Strategies": ~r/^PowAssent.Strategy/,
]
]
end
end