defmodule PaymentGatewayApp.MixProject do use Mix.Project def project do [ app: :payment_gateway_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 # Configuration for the OTP application. def application do [ mod: {PaymentGatewayApp.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"] # Specifies your project dependencies. defp deps do [ {:phoenix, "~> 1.7.18"}, {:phoenix_html, "~> 4.1"}, {:phoenix_live_reload, "~> 1.2", only: :dev}, {:phoenix_live_view, "~> 1.0.0"}, {:floki, ">= 0.30.0", only: :test}, {:esbuild, "~> 0.8", runtime: Mix.env() == :dev}, {:tailwind, "~> 0.2", runtime: Mix.env() == :dev}, {:telemetry_metrics, "~> 1.0"}, {:telemetry_poller, "~> 1.0"}, {:gettext, "~> 0.26"}, {:jason, "~> 1.2"}, {:bandit, "~> 1.5"}, {:req, "~> 0.5.8"}, {:plug_cowboy, "~> 2.5"}, {:ecto, "~> 3.12"} ] 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 payment_gateway_app", "esbuild payment_gateway_app"], "assets.deploy": [ "tailwind payment_gateway_app --minify", "esbuild payment_gateway_app --minify", "phx.digest" ] ] end end