blonk is a radar for your web, where you follow vibes for cool blips on the radar
at main 2.7 kB view raw
1defmodule ElixirBlonk.MixProject do 2 use Mix.Project 3 4 def project do 5 [ 6 app: :elixir_blonk, 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: {ElixirBlonk.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 {:bcrypt_elixir, "~> 3.0"}, 36 {:phoenix, "~> 1.7.21"}, 37 {:phoenix_ecto, "~> 4.5"}, 38 {:ecto_sql, "~> 3.10"}, 39 {:postgrex, ">= 0.0.0"}, 40 {:phoenix_html, "~> 4.1"}, 41 {:phoenix_live_reload, "~> 1.2", only: :dev}, 42 {:phoenix_live_view, "~> 1.0"}, 43 {:floki, ">= 0.30.0", only: :test}, 44 {:phoenix_live_dashboard, "~> 0.8.3"}, 45 {:esbuild, "~> 0.8", runtime: Mix.env() == :dev}, 46 {:tailwind, "~> 0.2.0", runtime: Mix.env() == :dev}, 47 {:heroicons, 48 github: "tailwindlabs/heroicons", 49 tag: "v2.1.1", 50 sparse: "optimized", 51 app: false, 52 compile: false, 53 depth: 1}, 54 # {:swoosh, "~> 1.5"}, # Temporarily disabled due to req version conflict 55 {:finch, "~> 0.13"}, 56 {:telemetry_metrics, "~> 1.0"}, 57 {:telemetry_poller, "~> 1.0"}, 58 {:gettext, "~> 0.26"}, 59 {:jason, "~> 1.2"}, 60 {:dns_cluster, "~> 0.1.1"}, 61 {:bandit, "~> 1.5"}, 62 {:websockex, "~> 0.4.3"}, 63 {:atproto, "~> 0.1.3"}, 64 {:dotenv, "~> 3.0.0"} 65 ] 66 end 67 68 # Aliases are shortcuts or tasks specific to the current project. 69 # For example, to install project dependencies and perform other setup tasks, run: 70 # 71 # $ mix setup 72 # 73 # See the documentation for `Mix` for more info on aliases. 74 defp aliases do 75 [ 76 setup: ["deps.get", "ecto.setup", "assets.setup", "assets.build"], 77 "ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"], 78 "ecto.reset": ["ecto.drop", "ecto.setup"], 79 test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"], 80 "assets.setup": ["tailwind.install --if-missing", "esbuild.install --if-missing"], 81 "assets.build": ["tailwind elixir_blonk", "esbuild elixir_blonk"], 82 "assets.deploy": [ 83 "tailwind elixir_blonk --minify", 84 "esbuild elixir_blonk --minify", 85 "phx.digest" 86 ] 87 ] 88 end 89end