defmodule Aeacus.Mixfile do use Mix.Project def project do [ app: :aeacus, version: "0.2.0", elixir: "~> 1.0", elixirc_paths: elixirc_paths(Mix.env), description: description, package: package, deps: deps ] end def application do [applications: applications(Mix.env)] end # # Private # # Specifies which paths to compile per environment defp elixirc_paths(:test), do: ["test/support"] ++ elixirc_paths(:prod) defp elixirc_paths(_), do: ["lib"] defp applications(:test) do [:logger, :ecto, :postgrex] ++ applications(:prod) end defp applications(_) do [:comeonin] end defp deps do [ {:comeonin, "~> 1.0"}, {:ex_doc, ">=0.1.0", only: [:dev, :test]}, {:earmark, ">= 0.0.0", only: [:dev, :test]}, {:ecto, "~> 1.0", only: :test}, {:postgrex, ">= 0.0.0", only: :test} ] end defp package do [ files: ["lib", "mix.exs", "README*", "LICENSE*"], maintainers: ["Zachary Moshansky"], licenses: ["BSD 3-Clause"], links: %{"GitHub" => "https://github.com/zmoshansky/aeacus"} ] end defp description do """ A simple, secure, and highly configurable Elixir identity [username | email | id | etc.]/password authentication module; Compatible with Ecto. """ end end