Current section

Files

Jump to
holidefs mix.exs
Raw

mix.exs

defmodule Holidefs.Mixfile do
use Mix.Project
@github_url "https://github.com/Teamweek/holidefs"
def project do
[
app: :holidefs,
version: "0.3.0",
elixir: "~> 1.5",
description: "Definition-based national holidays",
source_url: @github_url,
homepage_url: @github_url,
package: package(),
start_permanent: Mix.env() == :prod,
deps: deps(),
compilers: [:gettext] ++ Mix.compilers(),
test_coverage: [tool: ExCoveralls],
docs: docs(),
preferred_cli_env: preferred_cli_env(),
dialyzer: dialyzer()
]
end
def application do
[
extra_applications: [:logger],
mod: {Holidefs.Application, []}
]
end
defp package do
[
files: ["lib", "priv", "mix.exs", "README*", "LICENSE*"],
maintainers: ["Kelvin Stinghen", "Artur Cygan"],
licenses: ["MIT"],
links: %{"GitHub" => @github_url}
]
end
defp docs do
[
main: "readme",
extras: ["README.md", "CHANGELOG.md"]
]
end
defp preferred_cli_env do
[
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
]
end
defp dialyzer do
[
plt_apps: [
:compiler,
:elixir,
:gettext,
:kernel,
:logger,
:stdlib,
:yamerl,
:yaml_elixir,
:mix,
:download
],
dialyzer: [plt_add_deps: :transitive]
]
end
defp deps do
[
{:credo, "~> 0.8.10", only: [:test, :dev], optional: true, runtime: false},
{:download, "~> 0.0.4", runtime: false},
{:ex_doc, "~> 0.18", only: :dev, runtime: false},
{:excoveralls, "~> 0.6", only: :test},
{:gettext, "~> 0.13"},
{:inch_ex, only: :docs},
{:yaml_elixir, "~> 1.3"},
{:dialyxir, "~> 0.5", only: [:dev, :test], runtime: false}
]
end
end