Files
Claper/mix.exs

147 lines
4.2 KiB
Elixir
Raw Normal View History

defmodule Claper.MixProject do
use Mix.Project
2025-07-03 14:55:23 +02:00
@version "2.4.0"
2022-07-28 16:36:16 +02:00
def project do
[
app: :claper,
2022-07-28 16:36:16 +02:00
version: @version,
elixir: "~> 1.12",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
2022-07-28 14:51:22 +02:00
deps: deps(),
# Docs
name: "Claper",
source_url: "https://github.com/ClaperCo/Claper",
2023-10-21 11:46:11 +02:00
homepage_url: "https://claper.co",
2022-07-28 14:51:22 +02:00
docs: [
logo: "priv/static/images/logo.png",
2022-07-28 15:54:20 +02:00
groups_for_modules: [
2022-07-28 17:50:57 +02:00
"User management": [
~r/Claper\.Account\.?/,
~r/ClaperWeb\.UserRegistration\.?/,
~r/ClaperWeb\.UserSession\.?/,
~r/ClaperWeb\.UserLiveAuth\.?/,
~r/ClaperWeb\.UserConfirmation\.?/,
~r/ClaperWeb\.UserSettings\.?/,
~r/ClaperWeb\.UserReset\.?/,
~r/ClaperWeb\.Attendee\.?/,
~r/ClaperWeb\.UserAuth\.?/,
2022-11-17 13:37:34 +01:00
~r/ClaperWeb\.UserView\.?/
2022-07-28 17:50:57 +02:00
],
2022-11-17 13:37:34 +01:00
Events: [
2022-07-28 17:50:57 +02:00
~r/Claper\.Event\.?/,
2022-11-17 13:37:34 +01:00
~r/ClaperWeb\.Event\.?/
2022-07-28 17:50:57 +02:00
],
Forms: [
~r/Claper\.Forms\.?/,
~r/ClaperWeb\.Form\.?/
],
WebContent: [
~r/Claper\.Embed\.?/,
~r/ClaperWeb\.Embed\.?/
],
2022-11-17 13:37:34 +01:00
Polls: [
2022-07-28 17:50:57 +02:00
~r/Claper\.Polls\.?/,
2022-11-17 13:37:34 +01:00
~r/ClaperWeb\.Poll\.?/
2022-07-28 17:50:57 +02:00
],
2022-11-17 13:37:34 +01:00
Posts: [
2022-07-28 17:50:57 +02:00
~r/Claper\.Posts\.?/,
2022-11-17 13:37:34 +01:00
~r/ClaperWeb\.Post\.?/
2022-07-28 15:54:20 +02:00
]
]
2022-07-28 14:51:22 +02:00
]
]
end
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
def application do
[
mod: {Claper.Application, []},
extra_applications: [:logger, :runtime_tools, :ssl, :porcelain]
]
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
[
2025-07-03 14:29:09 +02:00
{:ex_aws, "~> 2.5"},
{:ex_aws_s3, "~> 2.5"},
{:ex_doc, "~> 0.38", only: :dev, runtime: false},
{:bcrypt_elixir, "~> 3.3"},
2023-04-20 17:15:31 +02:00
{:phoenix, "~> 1.7"},
2025-07-03 14:29:09 +02:00
{:phoenix_ecto, "~> 4.6"},
{:ecto_sql, "~> 3.13"},
{:postgrex, "~> 0.20.0"},
{:phoenix_html, "~> 4.2"},
2024-04-06 11:48:47 +02:00
{:phoenix_html_helpers, "~> 1.0"},
2025-07-03 14:29:09 +02:00
{:phoenix_live_reload, "~> 1.6", only: :dev},
2025-07-03 14:55:23 +02:00
{:phoenix_live_view, "~> 1.0"},
2024-04-06 11:48:47 +02:00
{:phoenix_swoosh, "~> 1.2.1"},
2023-04-20 17:15:31 +02:00
{:phoenix_view, "~> 2.0"},
2024-04-06 11:48:47 +02:00
{:floki, ">= 0.36.1", only: :test},
{:phoenix_live_dashboard, "~> 0.8"},
2025-07-03 14:29:09 +02:00
{:esbuild, "~> 0.10", runtime: Mix.env() == :dev},
2024-04-14 01:01:23 +02:00
{:dart_sass, "~> 0.7", runtime: Mix.env() == :dev},
2025-07-03 14:29:09 +02:00
{:swoosh, "~> 1.19"},
{:finch, "~> 0.19"},
{:telemetry_metrics, "~> 1.1"},
{:telemetry_poller, "~> 1.2"},
{:gettext, "~> 0.26"},
{:jason, "~> 1.4"},
{:sweet_xml, "~> 0.7"},
{:plug_cowboy, "~> 2.7"},
{:hashids, "~> 2.1"},
{:mogrify, "~> 0.9"},
{:libcluster, "~> 3.5"},
{:porcelain, "~> 2.0"},
2025-07-03 14:29:09 +02:00
{:hackney, "~> 1.24"},
{:csv, "~> 3.2"},
2024-07-11 12:41:05 +02:00
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
2025-07-03 14:29:09 +02:00
{:joken, "~> 2.6"},
2024-07-11 12:41:05 +02:00
{:jose, "~> 1.11"},
2025-07-03 14:29:09 +02:00
{:req, "~> 0.5"},
2024-08-11 11:16:34 +02:00
{:uuid, "~> 1.1"},
2025-07-03 14:29:09 +02:00
{:oidcc, "~> 3.5"},
{:oban, "~> 2.19"},
{:mua, "~> 0.2"},
{:mail, "~> 0.5"},
{:tailwind, "~> 0.3", runtime: Mix.env() == :dev}
]
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"],
"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.deploy": [
"cmd --cd assets npm install",
"tailwind default --minify",
2025-11-20 10:44:06 +01:00
"tailwind admin --minify",
"esbuild default --minify",
"sass default --no-source-map --style=compressed",
"phx.digest"
]
]
end
2024-06-07 15:06:38 +02:00
end