2021-06-22 01:55:16 +00:00
|
|
|
defmodule Wabanex.MixProject do
|
|
|
|
use Mix.Project
|
|
|
|
|
|
|
|
def project do
|
|
|
|
[
|
|
|
|
app: :wabanex,
|
|
|
|
version: "0.1.0",
|
|
|
|
elixir: "~> 1.7",
|
|
|
|
elixirc_paths: elixirc_paths(Mix.env()),
|
|
|
|
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
|
|
|
|
start_permanent: Mix.env() == :prod,
|
2021-06-28 12:40:21 +00:00
|
|
|
dialyzer: [plt_core_path: "priv/plts"],
|
2021-07-07 00:41:20 +00:00
|
|
|
test_coverage: [tool: LcovEx, output: "cover"],
|
|
|
|
preferred_cli_env: [lcov: :test],
|
2021-06-22 01:55:16 +00:00
|
|
|
aliases: aliases(),
|
|
|
|
deps: deps()
|
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
def application do
|
|
|
|
[
|
|
|
|
mod: {Wabanex.Application, []},
|
|
|
|
extra_applications: [:logger, :runtime_tools]
|
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
defp elixirc_paths(:test), do: ["lib", "test/support"]
|
|
|
|
defp elixirc_paths(_), do: ["lib"]
|
|
|
|
|
|
|
|
defp deps do
|
|
|
|
[
|
2021-06-24 00:03:34 +00:00
|
|
|
{:absinthe, "~> 1.5"},
|
2021-06-26 17:26:53 +00:00
|
|
|
{:absinthe_plug, "~> 1.5"},
|
2021-06-28 12:40:21 +00:00
|
|
|
{:credo, "~> 1.5", only: [:dev, :test], runtime: false},
|
2022-04-21 23:29:43 +00:00
|
|
|
{:crudry, "~> 2.4.0"},
|
2021-07-06 01:09:03 +00:00
|
|
|
{:dialyxir, "~> 1.1", only: [:dev, :test], runtime: false},
|
2022-04-21 23:29:43 +00:00
|
|
|
{:ecto_sql, "~> 3.4"},
|
2022-04-25 13:24:44 +00:00
|
|
|
{:gettext, "~> 0.19"},
|
2022-04-21 23:29:43 +00:00
|
|
|
{:jason, "~> 1.0"},
|
2021-07-07 00:41:20 +00:00
|
|
|
{:junit_formatter, "~> 3.1", only: [:test]},
|
2022-04-21 23:29:43 +00:00
|
|
|
{:lcov_ex, "~> 0.2", only: [:dev, :test], runtime: false},
|
|
|
|
{:pg_ranges, "~> 1.1"},
|
|
|
|
{:phoenix, "~> 1.6.0"},
|
|
|
|
{:phoenix_ecto, "~> 4.1"},
|
2022-04-25 13:31:13 +00:00
|
|
|
{:phoenix_live_dashboard, "~> 0.6"},
|
2022-04-21 23:29:43 +00:00
|
|
|
{:plug_cowboy, "~> 2.0"},
|
|
|
|
{:postgrex, ">= 0.0.0"},
|
2022-05-03 16:19:39 +00:00
|
|
|
{:prom_ex, "~> 1.7"},
|
2022-04-25 13:42:42 +00:00
|
|
|
{:telemetry_metrics, "~> 0.6"},
|
2022-04-21 23:29:43 +00:00
|
|
|
{:telemetry_poller, "~> 1.0"}
|
2021-06-22 01:55:16 +00:00
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
defp aliases do
|
|
|
|
[
|
|
|
|
setup: ["deps.get", "ecto.setup"],
|
|
|
|
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
|
|
|
|
"ecto.reset": ["ecto.drop", "ecto.setup"],
|
|
|
|
test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"]
|
|
|
|
]
|
|
|
|
end
|
|
|
|
end
|