Current section

Files

Jump to
envio mix.exs
Raw

mix.exs

defmodule Envio.MixProject do
use Mix.Project
@app :envio
@app_name "envio"
@version "0.10.2"
def project do
[
app: @app,
version: @version,
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
package: package(),
elixirc_paths: elixirc_paths(Mix.env()),
preferred_cli_env: ["test.cluster": :test],
xref: [exclude: []],
description: description(),
deps: deps(),
aliases: aliases(),
docs: docs(),
dialyzer: [
plt_file: {:no_warn, ".dialyzer/plts/dialyzer.plt"},
plt_add_deps: :transitive,
plt_add_apps: [:phoenix_pubsub],
ignore_warnings: ".dialyzer/ignore.exs"
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
mod: {Envio.Application, []},
extra_applications: [:logger, :inets, :ssl]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
# backends
{:iteraptor, "~> 1.0"},
{:jason, "~> 1.0"},
{:phoenix_pubsub, "~> 1.0 or ~> 2.0"},
# utilities
{:credo, "~> 1.0", only: [:dev, :ci], runtime: false},
{:dialyxir, "~> 1.0", only: [:dev, :ci], runtime: false},
{:ex_doc, "~> 0.19", only: :dev, runtime: false}
]
end
defp aliases do
[
quality: ["format", "credo --strict", "dialyzer"],
"quality.ci": [
"format --check-formatted",
"credo --strict",
"dialyzer --halt-exit-status"
]
]
end
defp description do
"""
The application-wide registry with handy helpers to ease dispatching.
"""
end
defp package do
[
name: @app,
files: ~w|config lib mix.exs README.md|,
source_ref: "v#{@version}",
source_url: "https://github.com/am-kantox/#{@app}",
canonical: "http://hexdocs.pm/#{@app}",
maintainers: ["Aleksei Matiushkin"],
licenses: ["Kantox LTD"],
links: %{
"GitHub" => "https://github.com/am-kantox/#{@app}",
"Docs" => "https://hexdocs.pm/#{@app}"
}
]
end
defp docs do
[
main: @app_name,
source_ref: "v#{@version}",
canonical: "http://hexdocs.pm/#{@app}",
logo: "stuff/logo-48x48.png",
source_url: "https://github.com/am-kantox/#{@app}",
extras: [
"stuff/#{@app_name}.md",
"stuff/backends.md"
],
groups_for_modules: [
# Envio
"Scaffold Helpers": [
Envio.Publisher,
Envio.Subscriber
],
"Internal Data": [
Envio.Channel,
Envio.State
]
]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
# defp elixirc_paths(:dev), do: ["lib", "test/support"]
defp elixirc_paths(:ci), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
end