Current section
Files
Jump to
Current section
Files
mix.exs
defmodule AdminElf.MixProject do
use Mix.Project
def project do
[
app: :admin_elf,
version: "0.4.3",
source_url: "https://gitlab.com/up-learn-uk/admin_elf",
description: description(),
package: package(),
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps(),
dialyzer: [
ignore_warnings: "dialyzer_ignore.exs",
plt_file: {:no_warn, "_build/plts/dialyzer.plt"}
],
preferred_cli_env: [
check: :test,
credo: :test,
dialyzer: :test,
doctor: :test,
sobelow: :test,
"test.watch": :test
]
]
end
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
def application do
[
mod: {AdminElf.Application, []},
extra_applications: [:logger, :runtime_tools]
]
end
defp description do
"A handy tool for all your administrative needs."
end
defp package do
[
licenses: ["Apache-2.0"],
links: %{"GitLab" => "https://gitlab.com/up-learn-uk/admin_elf"}
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Specifies your project dependencies.
#
# Type `mix help deps` for examples and options.
defp deps do
[
{:phoenix, "~> 1.5.7"},
{:phoenix_html, "~> 2.11"},
{:phoenix_live_reload, "~> 1.2", only: :dev},
{:telemetry_metrics, "~> 0.4"},
{:telemetry_poller, "~> 0.4"},
{:gettext, "~> 0.11"},
{:jason, "~> 1.0"},
{:plug_cowboy, "~> 2.0"},
{:number, "~> 1.0"},
{:timex, "~> 3.7"},
{:mix_test_watch, "~> 1.0", only: :test, runtime: false},
{:ex_check, "~> 0.14.0", only: [:dev, :test], runtime: false},
{:credo, ">= 0.0.0", only: [:dev, :test], runtime: false},
{:dialyxir, ">= 0.0.0", only: [:dev, :test], runtime: false},
{:doctor, ">= 0.0.0", only: [:dev, :test], runtime: false},
{:ex_doc, ">= 0.0.0", only: [:dev, :test], runtime: false},
{:sobelow, ">= 0.0.0", only: [:dev, :test], runtime: false}
]
end
# Aliases are shortcuts or tasks specific to the current project.
# For example, to install project dependencies and perform other setup tasks, run:
#
# $ mix setup
#
# See the documentation for `Mix` for more info on aliases.
defp aliases do
[
tmwtd: ["test.watch --max-failures 1"],
setup: ["deps.get", "cmd npm install --prefix assets"]
]
end
end