Some checks failed
Build and Publish / build-release (push) Failing after 5s
67 lines
1.5 KiB
Elixir
67 lines
1.5 KiB
Elixir
defmodule ProviderService.MixProject do
|
|
use Mix.Project
|
|
|
|
def project do
|
|
[
|
|
app: :provider_service,
|
|
version: "0.1.0",
|
|
elixir: "~> 1.18",
|
|
elixirc_paths: elixirc_paths(Mix.env()),
|
|
start_permanent: Mix.env() == :prod,
|
|
aliases: aliases(),
|
|
deps: deps()
|
|
]
|
|
end
|
|
|
|
def application do
|
|
[
|
|
mod: {ProviderService.Application, []},
|
|
extra_applications: [:logger, :runtime_tools]
|
|
]
|
|
end
|
|
|
|
defp elixirc_paths(:test), do: ["lib", "test/support"]
|
|
defp elixirc_paths(_), do: ["lib"]
|
|
|
|
defp deps do
|
|
[
|
|
# Phoenix
|
|
{:phoenix, "~> 1.7"},
|
|
{:phoenix_ecto, "~> 4.6"},
|
|
{:ecto_sql, "~> 3.12"},
|
|
{:postgrex, ">= 0.0.0"},
|
|
{:bandit, "~> 1.5"},
|
|
{:cors_plug, "~> 3.0"},
|
|
|
|
# Commanded / CQRS
|
|
{:commanded, "~> 1.4"},
|
|
{:commanded_eventstore_adapter, "~> 1.4"},
|
|
{:eventstore, "~> 1.4"},
|
|
{:commanded_ecto_projections, "~> 1.4"},
|
|
|
|
# Serialization
|
|
{:jason, "~> 1.4"},
|
|
|
|
# OpenAPI
|
|
{:open_api_spex, "~> 3.21"},
|
|
|
|
# Pagination
|
|
{:flop, "~> 0.26"},
|
|
|
|
# Authentication
|
|
{:oidcc, "~> 3.7"},
|
|
{:oidcc_plug, "~> 0.4"}
|
|
]
|
|
end
|
|
|
|
defp aliases do
|
|
[
|
|
setup: ["deps.get", "ecto.setup", "event_store.setup"],
|
|
"ecto.setup": ["ecto.create", "ecto.migrate"],
|
|
"ecto.reset": ["ecto.drop", "ecto.setup"],
|
|
"event_store.setup": ["event_store.create", "event_store.init"],
|
|
test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"]
|
|
]
|
|
end
|
|
end
|