Packages

The implementation of the `Agent` backing up any container implementing `Access`. The default one is map. All the handlers are exposed to ease the implementation.

Current section

Files

Jump to
agency mix.exs
Raw

mix.exs

defmodule MapAgent.MixProject do
use Mix.Project
@app :agency
@version "0.1.0"
def project do
[
app: @app,
version: @version,
elixir: "~> 1.9",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
preferred_cli_env: ["quality.ci": :ci, quality: :ci],
description: description(),
package: package(),
deps: deps(),
aliases: aliases(),
xref: [exclude: []],
docs: docs(),
releases: [
cloister: [
include_executables_for: [:unix],
applications: [logger: :permanent, runtime_tools: :permanent]
]
],
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
[
registered: [MapAgent]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(:ci), do: ["lib", "test/support"]
defp elixirc_paths(:dev), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{: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 aliases do
[
quality: ["format", "credo --strict", "dialyzer"],
"quality.ci": [
"format --check-formatted",
"credo --strict",
"dialyzer"
]
]
end
defp description do
"""
The implementation of the `Agent` backing up any container
implementing `Access`. The default one is map.
All the handlers are exposed to ease the implementation.
"""
end
defp package do
[
name: @app,
files: ~w|stuff 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: "readme",
source_ref: "v#{@version}",
canonical: "http://hexdocs.pm/#{@app}",
logo: "stuff/#{@app}-48x48.png",
source_url: "https://github.com/am-kantox/#{@app}",
assets: "stuff/images",
extras: ["README.md"],
groups_for_modules: []
]
end
end