58 lines
1.3 KiB
Elixir
58 lines
1.3 KiB
Elixir
defmodule Odinsea.MixProject do
|
|
use Mix.Project
|
|
|
|
def project do
|
|
[
|
|
app: :odinsea,
|
|
version: "0.1.0",
|
|
elixir: "~> 1.17",
|
|
start_permanent: Mix.env() == :prod,
|
|
elixirc_paths: elixirc_paths(Mix.env()),
|
|
deps: deps()
|
|
]
|
|
end
|
|
|
|
# Run "mix help compile.app" to learn about applications.
|
|
def application do
|
|
[
|
|
extra_applications: [:logger, :crypto],
|
|
mod: {Odinsea.Application, []}
|
|
]
|
|
end
|
|
|
|
defp elixirc_paths(:test), do: ["lib", "test/support"]
|
|
defp elixirc_paths(_), do: ["lib"]
|
|
|
|
# Run "mix help deps" to learn about dependencies.
|
|
defp deps do
|
|
[
|
|
# Networking
|
|
{:ranch, "~> 2.1"},
|
|
{:gen_state_machine, "~> 3.0"},
|
|
|
|
# Database
|
|
{:ecto_sql, "~> 3.11"},
|
|
{:myxql, "~> 0.7"},
|
|
{:redix, "~> 1.2"},
|
|
|
|
# Scripting
|
|
# {:quickjs, "~> 0.1"}, # JavaScript support - enable when needed
|
|
|
|
# Observability
|
|
{:telemetry, "~> 1.2"},
|
|
{:logger_file_backend, "~> 0.0.11"},
|
|
|
|
# Utilities
|
|
{:jason, "~> 1.4"},
|
|
{:decimal, "~> 2.1"},
|
|
{:timex, "~> 3.7"},
|
|
{:poolboy, "~> 1.5"},
|
|
{:nimble_pool, "~> 1.0"},
|
|
|
|
# Development
|
|
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
|
|
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false}
|
|
]
|
|
end
|
|
end
|