build/docs: precommit, other server study

This commit is contained in:
2026-03-13 19:51:52 +01:00
parent 953ccb60f4
commit 86b7156429
2 changed files with 257 additions and 1 deletions

14
mix.exs
View File

@@ -56,7 +56,19 @@ defmodule Parrhesia.MixProject do
defp aliases do
[
precommit: ["format --check-formatted", "credo --strict", "test"]
setup: ["deps.get", "ecto.setup"],
"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"],
# cov: ["cmd mix coveralls.lcov"],
lint: ["format --check-formatted", "credo"],
precommit: [
"format",
"compile --warnings-as-errors",
"credo --strict --all",
"deps.unlock --unused",
"test"
]
]
end
end