Current section
Files
Jump to
Current section
Files
kryptonite
mix.exs
mix.exs
defmodule Kryptonite.MixProject do
use Mix.Project
def project do
[
app: :kryptonite,
version: "0.1.2",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
name: "Kryptonite",
source_url: "https://github.com/the-missing-link/kryptonite",
homepage_url: "https://github.com/the-missing-link/kryptonite",
dialyzer: [plt_add_deps: :project, plt_add_apps: [:public_key]],
docs: [extras: ~w(README.md)],
test_coverage: [tool: ExCoveralls],
preferred_cli_env: cli_env_for(:test, ~w(
coveralls coveralls.detail coveralls.html coveralls.json coveralls.post
)),
package: package(),
description: """
A kollektion of scripts that are very close to cryptography but
aren't - hence the typo.
"""
]
end
def application do
[extra_applications: [:logger]]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
# Dev and Test only.
{:credo, "~> 0.8", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 0.5", only: [:dev, :test], runtime: false},
# Dev only.
{:mix_test_watch, "~> 0.5", only: :dev, runtime: false},
{:ex_doc, "~> 0.16", only: :dev, runtime: false},
{:excoveralls, "~> 0.8", only: :test, runtime: false}
]
end
defp cli_env_for(env, tasks) do
Enum.reduce(tasks, [], &Keyword.put(&2, :"#{&1}", env))
end
defp package do
[
name: "kryptonite",
files: ["lib", "mix.exs", "README*"],
maintainers: ["Pierre Martin"],
licenses: ["Apache 2.0"],
links: %{"GitHub" => "https://github.com/the-missing-link/kryptonite"}
]
end
end