Current section
Files
Jump to
Current section
Files
curator_confirmable
mix.exs
mix.exs
defmodule CuratorConfirmable.Mixfile do
use Mix.Project
@version "0.1.0"
@url "https://github.com/curator-ex/curator_confirmable"
@maintainers [
"Eric Sullivan",
]
def project do
[
app: :curator_confirmable,
version: "0.1.0",
elixir: "~> 1.3",
elixirc_paths: elixirc_paths(Mix.env),
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
aliases: aliases,
deps: deps,
description: "An email confirmation workflow for Curator",
package: package(),
source_url: @url,
homepage_url: @url,
docs: docs(),
dialyzer: [plt_add_deps: :transitive],
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
def application do
[applications: _applications(Mix.env)]
end
defp _applications(:test), do: [:postgrex, :ecto, :logger, :timex, :timex_ecto, :tzdata]
defp _applications(_), do: [:logger, :timex, :timex_ecto, :tzdata]
defp deps do
[
{:curator, "~> 0.1.0"},
{:ecto, "~> 2.0"},
{:plug, "~> 1.2"},
{:postgrex, ">= 0.11.1", optional: true},
{:timex, "~> 3.0"},
{:timex_ecto, "~> 3.0"},
{:credo, "~> 0.5", only: [:dev, :test]},
{:dialyxir, "~> 0.4", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.10", only: :dev},
]
end
def docs do
[
extras: ["README.md", "CHANGELOG.md"],
source_ref: "v#{@version}"
]
end
defp package do
[
name: :curator_confirmable,
maintainers: @maintainers,
licenses: ["MIT"],
links: %{github: @url},
files: ["lib", "priv", "mix.exs", "README*", "LICENSE*", "CHANGELOG*"],
]
end
defp aliases do
["test": ["ecto.create --quiet", "ecto.migrate", "test"]]
end
end