Current section

Files

Jump to
knigge mix.exs
Raw

mix.exs

defmodule Knigge.MixProject do
use Mix.Project
@version "version" |> File.read!() |> String.trim()
def project do
[
app: :knigge,
config_path: "config/config.exs",
elixir: ">= 1.7.4 and < 2.0.0",
elixirc_paths: elixirc_paths(Mix.env()),
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
],
test_coverage: [tool: ExCoveralls],
start_permanent: Mix.env() == :prod,
deps: deps(),
# Docs
name: "Knigge",
source_url: "https://github.com/sascha-wolf/knigge",
homepage_url: "https://github.com/sascha-wolf/knigge",
# Hex
description: description(),
package: package(),
version: @version
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
# No Runtime
{:credo, "~> 1.0.0", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0.0-rc.6", only: [:dev], runtime: false},
{:ex_doc, "~> 0.21", only: :dev, runtime: false},
# Test
{:excoveralls, "~> 0.10", only: :test},
{:mox, "~> 0.5", only: :test},
# Docs
{:inch_ex, ">= 0.0.0", only: :docs}
]
end
#######
# Hex #
#######
def description do
"An opinionated way of dealing with behaviours."
end
def package do
[
files: ["lib", "mix.exs", "LICENSE*", "README*", "version"],
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/sascha-wolf/knigge"
},
maintainers: ["Sascha Wolf <swolf.dev@gmail.com>"]
]
end
end