Packages

The scaffold for the process keeping track of the cluster changes and calling callbacks

Current section

Files

Jump to
Raw

mix.exs

defmodule EasyCluster.MixProject do
use Mix.Project
@app :easy_cluster
@version "0.1.1"
def project do
[
app: @app,
version: @version,
elixir: "~> 1.9",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
package: package(),
xref: [exclude: []],
description: description(),
deps: deps(),
aliases: aliases(),
xref: [exclude: []],
docs: docs(),
dialyzer: [
plt_file: {:no_warn, ".dialyzer/plts/dialyzer.plt"},
ignore_warnings: ".dialyzer/ignore.exs"
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger],
mod: {EasyCluster.Application, []}
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:test_cluster_task, "~> 0.4", only: [:dev, :test, :ci]},
{:credo, "~> 1.0", only: [:dev, :ci]},
{:dialyxir, "~> 1.0.0-rc.6", only: [:dev, :test, :ci], runtime: false},
{:ex_doc, "~> 0.11", only: :dev}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(:ci), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp aliases do
[
quality: ["format", "credo --strict", "dialyzer"],
"quality.ci": [
"format --check-formatted",
"credo --strict",
"dialyzer --halt-exit-status"
]
]
end
defp description do
"""
The scaffold for the process keeping track of the cluster changes and calling callbacks
"""
end
defp package do
[
name: @app,
files: ~w|config lib mix.exs README.md|,
maintainers: ["Aleksei Matiushkin"],
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/am-kantox/#{@app}",
"Docs" => "https://hexdocs.pm/#{@app}"
}
]
end
defp docs do
[
# main: "intro",
source_ref: "v#{@version}",
canonical: "http://hexdocs.pm/#{@app}",
# logo: "stuff/images/logo.png",
source_url: "https://github.com/am-kantox/#{@app}",
# assets: "stuff/images",
extras: [
"README.md"
],
groups_for_modules: []
]
end
end