dotfiles/mix.exs

88 lines
2.7 KiB
Elixir
Raw Normal View History

2023-06-01 09:49:27 +00:00
defmodule Prymn.MixProject do
use Mix.Project
def project do
[
app: :prymn,
version: "0.1.0",
2023-06-20 15:48:33 +00:00
elixir: "~> 1.15",
compilers: [:proto | Mix.compilers()],
2023-06-01 09:49:27 +00:00
elixirc_paths: elixirc_paths(Mix.env()),
config_path: Path.expand("app/config/config.exs", __DIR__),
2023-06-01 09:49:27 +00:00
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps()
]
end
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
def application do
[
mod: {Prymn.Application, []},
extra_applications: [:logger, :runtime_tools, :os_mon]
2023-06-01 09:49:27 +00:00
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["app/lib", "app/test/support"]
defp elixirc_paths(_), do: ["app/lib"]
2023-06-01 09:49:27 +00:00
# Specifies your project dependencies.
#
# Type `mix help deps` for examples and options.
defp deps do
[
2023-07-28 20:44:00 +00:00
{:argon2_elixir, "~> 3.0"},
{:phoenix, "~> 1.7.7"},
2023-06-01 09:49:27 +00:00
{:phoenix_ecto, "~> 4.4"},
{:ecto_sql, "~> 3.10"},
{:postgrex, ">= 0.0.0"},
{:phoenix_html, "~> 3.3"},
2023-06-20 15:48:33 +00:00
{:phoenix_live_view, "~> 0.19.2"},
2023-06-01 09:49:27 +00:00
{:phoenix_live_dashboard, "~> 0.8.0"},
{:swoosh, "~> 1.3"},
{:finch, "~> 0.13"},
{:telemetry_metrics, "~> 0.6"},
{:telemetry_poller, "~> 1.0"},
{:gettext, "~> 0.20"},
{:jason, "~> 1.2"},
2023-06-08 11:46:05 +00:00
{:plug_cowboy, "~> 2.5"},
{:grpc, "~> 0.7"},
{:protobuf, "~> 0.12.0"},
{:google_protos, "~> 0.3.0"},
# Test
{:floki, ">= 0.30.0", only: :test},
# Dev
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:esbuild, "~> 0.7", runtime: Mix.env() == :dev},
{:tailwind, "~> 0.2.0", runtime: Mix.env() == :dev},
{:tailwind_formatter, "~> 0.3.6", runtime: Mix.env() == :dev},
{:phoenix_live_reload, "~> 1.2", only: :dev},
2023-08-29 11:16:25 +00:00
{:dialyxir, "~> 1.4", only: [:dev], runtime: false},
{:prymn_proto_compiler, path: "proto_compiler", runtime: false}
2023-06-01 09:49:27 +00:00
]
end
# Aliases are shortcuts or tasks specific to the current project.
# For example, to install project dependencies and perform other setup tasks, run:
#
# $ mix setup
#
# See the documentation for `Mix` for more info on aliases.
defp aliases do
[
setup: ["deps.get", "ecto.setup", "assets.setup", "assets.build"],
"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"],
"assets.setup": ["tailwind.install --if-missing", "esbuild.install --if-missing"],
"assets.build": ["tailwind default", "esbuild default"],
"assets.deploy": ["tailwind default --minify", "esbuild default --minify", "phx.digest"]
]
end
end