defmodule ExAudit.Mixfile do use Mix.Project def project do [ description: "Ecto auditing library that transparently tracks changes and can revert them", app: :ex_audit, version: "0.8.0", elixir: "~> 1.11", start_permanent: Mix.env() == :prod, deps: deps(), elixirc_paths: paths(Mix.env()), test_coverage: [tool: ExCoveralls], preferred_cli_env: [coveralls: :test], source_url: "https://github.com/zenneriot/ex_audit", package: [ licenses: ["MIT"], maintainers: ["Moritz Schmale "], links: %{ "GitHub" => "https://github.com/zenneriot/ex_audit", "Documentation" => "https://hexdocs.pm/ex_audit" } ], docs: [ main: "ExAudit", extras: ["README.md"] ] ] end def paths(:test) do paths(:default) ++ ["./example"] end def paths(:default) do ["./lib"] end def paths(_), do: paths(:default) # Run "mix help compile.app" to learn about applications. def application do [ mod: {ExAudit, []}, extra_applications: [:logger] ] end # Run "mix help deps" to learn about dependencies. defp deps do [ {:ecto, "~> 3.6"}, {:ecto_sql, "~> 3.6"}, {:postgrex, "~> 0.15", only: :test}, {:excoveralls, "~> 0.7", only: :test}, {:ex_doc, ">= 0.0.0", runtime: false, only: :dev}, {:mix_test_watch, "~> 1.0", only: :dev, runtime: false} ] end end