defmodule DaProductApp.MixProject do use Mix.Project def project do [ app: :da_product_app, 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: {DaProductApp.Application, []}, extra_applications: [:logger, :runtime_tools, :os_mon] ] end defp elixirc_paths(:test), do: ["lib", "test/support"] defp elixirc_paths(_), do: ["lib"] defp deps do [ {:tms_core, in_umbrella: true}, {:settlement_core, in_umbrella: true}, {:risk_core, in_umbrella: true}, {:bcrypt_elixir, "~> 3.1"}, {:cachex, "~> 4.1.1"}, {:premailex, "~> 0.3.20"}, {:credo, "~> 1.7.11", only: [:dev, :test], runtime: false}, {:sobelow, "~> 0.13.0", only: [:dev, :test], runtime: false}, {:req, "~> 0.5.8"}, {:phoenix, "~> 1.7.18"}, {:ecto_sql, "~> 3.13.2"}, {:phoenix_ecto, "~> 4.6.5"}, {:myxql, ">= 0.0.0"}, {:phoenix_html, "~> 4.1"}, {:phoenix_live_reload, "~> 1.6", only: :dev}, {:phoenix_live_view, "~> 1.1.8"}, {:floki, ">= 0.30.0"}, {:phoenix_live_dashboard, "~> 0.8.3"}, {: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}, {:swoosh, "~> 1.5"}, {:gen_smtp, "~> 1.2"}, {:finch, "~> 0.13"}, {:telemetry_metrics, "~> 1.0"}, {:telemetry_poller, "~> 1.0"}, {:gettext, "~> 0.26"}, {:tortoise, "~> 0.10"}, {:phoenix_pubsub, "~> 2.0"}, {:jason, "~> 1.2"}, {:dns_cluster, "~> 0.1.1"}, {:bandit, "~> 1.5"}, {:ranch, "~> 2.1"}, {:cors_plug, "~> 3.0"}, {:petal_components, "~> 2.8.1"}, {:salad_ui, "~> 0.14"}, {:timex, "~> 3.7"}, {:saas_kit, "~> 1.0.7"}, {:oban, "~> 2.20.1"} ] end 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 da_product_app", "esbuild da_product_app"], "assets.deploy": [ "tailwind da_product_app --minify", "esbuild da_product_app --minify", "phx.digest" ] ] end end