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()),
|
2023-06-20 03:06:58 +00:00
|
|
|
compilers: Mix.compilers(),
|
2021-06-22 01:55:16 +00:00
|
|
|
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
|
|
|
|
[
|
2024-07-12 11:12:50 +00:00
|
|
|
{:absinthe, "~> 1.7.0"},
|
2024-07-08 21:04:26 +00:00
|
|
|
{:absinthe_plug,
|
|
|
|
git: "https://github.com/absinthe-graphql/absinthe_plug.git",
|
2025-01-25 15:17:15 +00:00
|
|
|
ref: "307c8bb14f9eec8a5cd77842366ac4eae7f17d76"},
|
2023-06-20 03:06:58 +00:00
|
|
|
{:credo, "~> 1.7.0", only: [:dev, :test], runtime: false},
|
2022-04-21 23:29:43 +00:00
|
|
|
{:crudry, "~> 2.4.0"},
|
2025-01-26 15:10:24 +00:00
|
|
|
{:decimal, "~> 2.3.0"},
|
2023-08-28 14:31:16 +00:00
|
|
|
{:dialyxir, "~> 1.4.0", only: [:dev, :test], runtime: false},
|
2024-09-22 18:56:27 +00:00
|
|
|
{:dns_cluster, "~> 0.1.1"},
|
2024-08-12 20:08:18 +00:00
|
|
|
{:ecto_sql, "~> 3.12.0"},
|
2024-10-07 19:23:26 +00:00
|
|
|
{:elixlsx, "~> 0.6.0", only: :test},
|
2025-01-26 15:10:24 +00:00
|
|
|
{:ex_doc, "~> 0.36.0", only: :dev, runtime: false},
|
2024-10-02 11:51:23 +00:00
|
|
|
{:gettext, "~> 0.26.0"},
|
2023-06-20 03:06:58 +00:00
|
|
|
{:jason, "~> 1.4.0"},
|
2024-04-15 14:18:49 +00:00
|
|
|
{:junit_formatter, "~> 3.4.0", only: [:test]},
|
2023-06-20 03:06:58 +00:00
|
|
|
{:lcov_ex, "~> 0.3.0", only: [:dev, :test], runtime: false},
|
2023-11-11 20:35:45 +00:00
|
|
|
{:mix_audit, "~> 2.1.0", only: [:dev, :test], runtime: false},
|
2024-06-04 13:57:32 +00:00
|
|
|
{:nimble_csv, "~> 1.2.0"},
|
2023-06-20 03:06:58 +00:00
|
|
|
{:pg_ranges, "~> 1.1.0"},
|
|
|
|
{:phoenix, "~> 1.7.0"},
|
2024-05-16 18:46:25 +00:00
|
|
|
{:phoenix_ecto, "~> 4.6.0"},
|
2023-06-20 03:06:58 +00:00
|
|
|
{:phoenix_live_dashboard, "~> 0.8.0"},
|
2024-08-12 20:19:36 +00:00
|
|
|
{:phoenix_view, "~> 2.0.0"},
|
2024-02-11 13:53:11 +00:00
|
|
|
{:plug_cowboy, "~> 2.7.0"},
|
2025-02-06 17:56:19 +00:00
|
|
|
{:postgrex, "~> 0.20.0"},
|
2024-10-30 19:25:50 +00:00
|
|
|
{:prom_ex, "~> 1.11.0"},
|
2024-06-04 13:57:32 +00:00
|
|
|
{:req, "~> 0.5.0"},
|
2023-11-25 16:58:29 +00:00
|
|
|
{:sobelow, "~> 0.13", only: [:dev, :test], runtime: false},
|
2025-01-25 14:38:43 +00:00
|
|
|
{:telemetry_metrics, "~> 1.1.0"},
|
2024-06-04 13:57:32 +00:00
|
|
|
{:telemetry_poller, "~> 1.1.0"},
|
|
|
|
{:xlsx_reader, "~> 0.8.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
|