this repo has no description
at main 2.5 kB view raw
1defmodule Tasty.MixProject do 2 use Mix.Project 3 4 def project do 5 [ 6 app: :tasty, 7 version: "0.1.0", 8 elixir: "~> 1.14", 9 elixirc_paths: elixirc_paths(Mix.env()), 10 start_permanent: Mix.env() == :prod, 11 aliases: aliases(), 12 deps: deps() 13 ] 14 end 15 16 # Configuration for the OTP application. 17 # 18 # Type `mix help compile.app` for more information. 19 def application do 20 [ 21 mod: {Tasty.Application, []}, 22 extra_applications: [:logger, :runtime_tools] 23 ] 24 end 25 26 # Specifies which paths to compile per environment. 27 defp elixirc_paths(:test), do: ["lib", "test/support"] 28 defp elixirc_paths(_), do: ["lib"] 29 30 # Specifies your project dependencies. 31 # 32 # Type `mix help deps` for examples and options. 33 defp deps do 34 [ 35 {:phoenix, "~> 1.7.18"}, 36 {:phoenix_ecto, "~> 4.5"}, 37 {:ecto_sql, "~> 3.10"}, 38 {:postgrex, ">= 0.0.0"}, 39 {:phoenix_html, "~> 4.1"}, 40 {:phoenix_live_reload, "~> 1.2", only: :dev}, 41 {:phoenix_live_view, "~> 1.0.0"}, 42 {:floki, ">= 0.30.0", only: :test}, 43 {:phoenix_live_dashboard, "~> 0.8.3"}, 44 {:esbuild, "~> 0.8", runtime: Mix.env() == :dev}, 45 {:tailwind, "~> 0.2", runtime: Mix.env() == :dev}, 46 {:heroicons, 47 github: "tailwindlabs/heroicons", 48 tag: "v2.1.1", 49 sparse: "optimized", 50 app: false, 51 compile: false, 52 depth: 1}, 53 {:swoosh, "~> 1.5"}, 54 {:finch, "~> 0.13"}, 55 {:telemetry_metrics, "~> 1.0"}, 56 {:telemetry_poller, "~> 1.0"}, 57 {:gettext, "~> 0.26"}, 58 {:jason, "~> 1.2"}, 59 {:dns_cluster, "~> 0.1.1"}, 60 {:bandit, "~> 1.5"} 61 ] 62 end 63 64 # Aliases are shortcuts or tasks specific to the current project. 65 # For example, to install project dependencies and perform other setup tasks, run: 66 # 67 # $ mix setup 68 # 69 # See the documentation for `Mix` for more info on aliases. 70 defp aliases do 71 [ 72 setup: ["deps.get", "ecto.setup", "assets.setup", "assets.build"], 73 "ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"], 74 "ecto.reset": ["ecto.drop", "ecto.setup"], 75 test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"], 76 "assets.setup": ["tailwind.install --if-missing", "esbuild.install --if-missing"], 77 "assets.build": ["tailwind tasty", "esbuild tasty"], 78 "assets.deploy": [ 79 "tailwind tasty --minify", 80 "esbuild tasty --minify", 81 "phx.digest" 82 ] 83 ] 84 end 85end