This commit is contained in:
69
mix.exs
Normal file
69
mix.exs
Normal file
@@ -0,0 +1,69 @@
|
||||
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"},
|
||||
|
||||
# AWS S3
|
||||
{:ex_aws, "~> 2.5"},
|
||||
{:ex_aws_s3, "~> 2.5"},
|
||||
{:hackney, "~> 1.20"},
|
||||
{:req, "~> 0.5"},
|
||||
{:sweet_xml, "~> 0.7"}
|
||||
]
|
||||
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
|
||||
Reference in New Issue
Block a user