Current section
Files
Jump to
Current section
Files
mix.exs
defmodule Camarero.MixProject do
use Mix.Project
@app :camarero
@app_name "camarero"
@version "0.4.1"
def project do
[
app: @app,
version: @version,
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
package: package(),
xref: [exclude: []],
description: description(),
deps: deps(),
docs: docs()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger, :cowboy, :ranch, :ssl],
mod: {Camarero.Application, []}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(:dev), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:plug, "~> 1.7.2"},
{:cowboy, "~> 2.0"},
{:plug_cowboy, "~> 2.0"},
{:jason, "~> 1.0"},
{:iteraptor, "~> 1.0", only: :test},
{:stream_data, "~> 0.4", only: :test},
{:ex_doc, ">= 0.0.0", only: :dev}
]
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|,
maintainers: ["Aleksei Matiushkin"],
licenses: ["MIT"],
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-48.png",
source_url: "https://github.com/am-kantox/#{@app}",
extras: [
"stuff/#{@app_name}.md"
],
groups_for_modules: [
# Envio
Behaviours: [
Camarero.Tapas,
Camarero.Plato
],
"Internal Data": [
Camarero.Catering.Routes
],
"Default Implementations": [
Camarero.Carta.Heartbeat
]
]
]
end
end