defmodule PlatformWeb.MixProject do use Mix.Project def project do [ app: :platform_web, version: "0.1.0", build_path: "../../_build", config_path: "../../config/config.exs", deps_path: "../../deps", lockfile: "../../mix.lock", elixir: "~> 1.14", elixirc_paths: elixirc_paths(Mix.env()), start_permanent: Mix.env() == :prod, aliases: aliases(), deps: deps() ] end def application do [ mod: {PlatformWeb.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"] # Dependencies for the web layer defp deps do [ # Umbrella dependencies - core functionality {:platform_core, in_umbrella: true}, {:tms_core, in_umbrella: true}, {:settlement_core, in_umbrella: true}, {:risk_core, in_umbrella: true}, {:da_product_app, in_umbrella: true}, # Phoenix core {:phoenix, "~> 1.7.18"}, {:phoenix_html, "~> 4.1"}, {:phoenix_live_reload, "~> 1.6", only: :dev}, {:phoenix_live_view, "~> 1.1.8"}, {:phoenix_live_dashboard, "~> 0.8.3"}, {:phoenix_ecto, "~> 4.6.5"}, # Assets & UI {:esbuild, "~> 0.10", runtime: Mix.env() == :dev}, {:tailwind, "~> 0.2", runtime: Mix.env() == :dev}, {:heroicons, github: "tailwindlabs/heroicons", tag: "v2.1.1", sparse: "optimized", app: false, compile: false, depth: 1}, {:petal_components, "~> 2.8.1"}, {:salad_ui, "~> 0.14"}, {:saas_kit, "~> 1.0.7"}, # Web utilities {:gettext, "~> 0.26"}, {:jason, "~> 1.2"}, {:bandit, "~> 1.5"}, {:cors_plug, "~> 3.0"}, {:dns_cluster, "~> 0.1.1"}, # Email {:swoosh, "~> 1.5"}, {:finch, "~> 0.13"}, {:premailex, "~> 0.3.20"}, # Telemetry {:telemetry_metrics, "~> 1.0"}, {:telemetry_poller, "~> 1.0"}, # Authentication {:bcrypt_elixir, "~> 3.1"}, # Caching {:cachex, "~> 4.1.1"}, # Testing {:floki, ">= 0.30.0", only: :test}, # Code quality (optional) {:credo, "~> 1.7.11", only: [:dev, :test], runtime: false}, {:sobelow, "~> 0.13.0", only: [:dev, :test], runtime: false} ] end # Aliases are shortcuts or tasks specific to the current project. defp aliases do [ setup: ["deps.get", "assets.setup", "assets.build"], "assets.setup": ["tailwind.install --if-missing", "esbuild.install --if-missing"], "assets.build": ["tailwind platform_web", "esbuild platform_web"], "assets.deploy": [ "tailwind platform_web --minify", "esbuild platform_web --minify", "phx.digest" ] ] end end