chiya/mix.exs

93 lines
2.7 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, []},
2023-06-09 23:07:32 +02:00
extra_applications: [:logger, :runtime_tools]
2023-03-05 16:07:40 +01:00
]
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-06-09 19:06:39 +02:00
{:cors_plug, "~> 3.0"},
2023-06-26 23:16:44 +02:00
{:coverex, "~> 1.5", only: :test},
2023-09-13 23:09:19 +02:00
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
2023-05-28 22:36:13 +02:00
{:earmark, "~> 1.4"},
{:ecto_autoslug_field, "~> 3.0"},
{:ecto_sql, "~> 3.6"},
{:finch, "~> 0.16"},
{:floki, ">= 0.30.0", only: :test},
2023-09-09 16:08:30 +02:00
{:flop, "~> 0.22.1"},
{:flop_phoenix, "~> 0.21.1"},
2023-08-07 18:50:22 +02:00
{:gettext, "~> 0.23"},
2023-05-28 22:36:13 +02:00
{:jason, "~> 1.2"},
{:oban, "~> 2.14"},
2023-03-05 16:07:40 +01:00
{:phoenix, "~> 1.7.1"},
2023-09-11 23:19:44 +02:00
{:phoenix_active_link, "~> 0.3.2"},
2023-03-05 16:07:40 +01:00
{:phoenix_ecto, "~> 4.4"},
{:phoenix_html, "~> 3.3"},
2023-05-31 21:32:34 +02:00
{:phoenix_live_dashboard, "~> 0.8.0"},
2023-03-05 16:07:40 +01:00
{:phoenix_live_reload, "~> 1.2", only: :dev},
2023-05-31 21:32:34 +02:00
{:phoenix_live_view, "~> 0.19"},
2023-05-28 22:36:13 +02:00
{:plug_cowboy, "~> 2.5"},
{:postgrex, ">= 0.0.0"},
2023-09-09 12:47:25 +02:00
{:slugger, "~> 0.3"},
2023-06-26 23:16:44 +02:00
{:swoosh, "~> 1.11"},
2023-05-28 22:36:13 +02:00
{:tailwind, "~> 0.2.0", runtime: Mix.env() == :dev},
2023-03-05 16:07:40 +01:00
{:telemetry_metrics, "~> 0.6"},
{:telemetry_poller, "~> 1.0"},
2023-05-28 22:36:13 +02:00
{:tesla, "~> 1.7"},
{:tz, "~> 0.26.1"},
2023-03-06 23:15:23 +01:00
{:waffle, "~> 1.1"},
2023-03-13 03:26:39 +01:00
{:waffle_ecto, "~> 0.0.12"},
2023-05-28 22:36:13 +02:00
{:yaml_front_matter, "~> 1.0.0"}
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"],
2023-03-21 07:19:10 +01:00
"assets.setup": ["tailwind.install --if-missing", "cmd --cd assets npm install"],
2023-03-21 08:39:44 +01:00
"assets.build": ["tailwind default", "cmd --cd assets node build.js"],
2023-03-31 16:58:10 +02:00
"assets.deploy": [
"tailwind default --minify",
"cmd --cd assets node build.js --deploy",
"phx.digest"
]
2023-03-05 16:07:40 +01:00
]
end
end