chiya/mix.exs

79 lines
2.4 KiB
Elixir
Raw Normal View History

2023-03-05 16:07:40 +01:00
defmodule Chiya.MixProject do
use Mix.Project
def project do
[
app: :chiya,
version: "0.1.0",
elixir: "~> 1.14",
elixirc_paths: elixirc_paths(Mix.env()),
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: {Chiya.Application, []},
extra_applications: [:logger, :runtime_tools]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Specifies your project dependencies.
#
# Type `mix help deps` for examples and options.
defp deps do
[
2023-03-05 16:13:00 +01:00
{:bcrypt_elixir, "~> 3.0"},
2023-03-05 16:07:40 +01:00
{:phoenix, "~> 1.7.1"},
{:phoenix_ecto, "~> 4.4"},
{:ecto_sql, "~> 3.6"},
{:postgrex, ">= 0.0.0"},
{:phoenix_html, "~> 3.3"},
{:phoenix_live_reload, "~> 1.2", only: :dev},
{:phoenix_live_view, "~> 0.18.16"},
{:floki, ">= 0.30.0", only: :test},
{:phoenix_live_dashboard, "~> 0.7.2"},
2023-03-18 08:13:51 +01:00
{:esbuild, "~> 0.7", runtime: Mix.env() == :dev},
2023-03-18 08:43:28 +01:00
{:tailwind, "~> 0.2.0", runtime: Mix.env() == :dev},
2023-03-05 16:07:40 +01:00
{:swoosh, "~> 1.3"},
2023-03-18 08:43:16 +01:00
{:finch, "~> 0.15"},
2023-03-05 16:07:40 +01:00
{:telemetry_metrics, "~> 0.6"},
{:telemetry_poller, "~> 1.0"},
2023-03-18 08:43:22 +01:00
{:gettext, "~> 0.22"},
2023-03-05 16:07:40 +01:00
{:jason, "~> 1.2"},
2023-03-05 16:21:35 +01:00
{:plug_cowboy, "~> 2.5"},
2023-03-06 23:15:23 +01:00
{:oban, "~> 2.14"},
{:waffle, "~> 1.1"},
2023-03-13 03:26:39 +01:00
{:waffle_ecto, "~> 0.0.12"},
{:earmark, "~> 1.4"}
2023-03-05 16:07:40 +01: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