From e1b387ff0a02d35180f774f429971eceefa83e49 Mon Sep 17 00:00:00 2001 From: Samuel Owen Date: Sun, 5 May 2024 14:53:23 +0100 Subject: [PATCH 1/3] feat: :package: add tailwind_formatter as dev and test dependency --- mix.exs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mix.exs b/mix.exs index b812b9b..6291a4a 100644 --- a/mix.exs +++ b/mix.exs @@ -39,7 +39,8 @@ defmodule Bloom.MixProject do {:phoenix_live_view, "~> 0.20"}, {:phoenix_html, ">= 3.3.3"}, {:mox, "~> 1.0", only: :test}, - {:ex_doc, ">= 0.0.0", only: :dev, runtime: false} + {:ex_doc, ">= 0.0.0", only: :dev, runtime: false}, + {:tailwind_formatter, "~> 0.4.0", only: [:dev, :test], runtime: false} ] end end From 1f0e456ee97a62b063b04769649e7e8fba24a412 Mon Sep 17 00:00:00 2001 From: Samuel Owen Date: Sun, 5 May 2024 14:54:25 +0100 Subject: [PATCH 2/3] chore: :package: update mix.lock --- mix.lock | 1 + 1 file changed, 1 insertion(+) diff --git a/mix.lock b/mix.lock index f0e4d2c..e0330a9 100644 --- a/mix.lock +++ b/mix.lock @@ -16,6 +16,7 @@ "phoenix_template": {:hex, :phoenix_template, "1.0.4", "e2092c132f3b5e5b2d49c96695342eb36d0ed514c5b252a77048d5969330d639", [:mix], [{:phoenix_html, "~> 2.14.2 or ~> 3.0 or ~> 4.0", [hex: :phoenix_html, repo: "hexpm", optional: true]}], "hexpm", "2c0c81f0e5c6753faf5cca2f229c9709919aba34fab866d3bc05060c9c444206"}, "plug": {:hex, :plug, "1.15.3", "712976f504418f6dff0a3e554c40d705a9bcf89a7ccef92fc6a5ef8f16a30a97", [:mix], [{:mime, "~> 1.0 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:plug_crypto, "~> 1.1.1 or ~> 1.2 or ~> 2.0", [hex: :plug_crypto, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4.3 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "cc4365a3c010a56af402e0809208873d113e9c38c401cabd88027ef4f5c01fd2"}, "plug_crypto": {:hex, :plug_crypto, "2.0.0", "77515cc10af06645abbfb5e6ad7a3e9714f805ae118fa1a70205f80d2d70fe73", [:mix], [], "hexpm", "53695bae57cc4e54566d993eb01074e4d894b65a3766f1c43e2c61a1b0f45ea9"}, + "tailwind_formatter": {:hex, :tailwind_formatter, "0.4.0", "2aa6f391b3b6fe52a18fe75b75c76d541c3478a31bcfc1ebe987819fa32653bf", [:mix], [], "hexpm", "6465afc3e864937fcb477524be45a2d9d73a1b1ee904d85f1592b80dbcb0b741"}, "telemetry": {:hex, :telemetry, "1.2.1", "68fdfe8d8f05a8428483a97d7aab2f268aaff24b49e0f599faa091f1d4e7f61c", [:rebar3], [], "hexpm", "dad9ce9d8effc621708f99eac538ef1cbe05d6a874dd741de2e689c47feafed5"}, "websock": {:hex, :websock, "0.5.3", "2f69a6ebe810328555b6fe5c831a851f485e303a7c8ce6c5f675abeb20ebdadc", [:mix], [], "hexpm", "6105453d7fac22c712ad66fab1d45abdf049868f253cf719b625151460b8b453"}, "websock_adapter": {:hex, :websock_adapter, "0.5.6", "0437fe56e093fd4ac422de33bf8fc89f7bc1416a3f2d732d8b2c8fd54792fe60", [:mix], [{:bandit, ">= 0.6.0", [hex: :bandit, repo: "hexpm", optional: true]}, {:plug, "~> 1.14", [hex: :plug, repo: "hexpm", optional: false]}, {:plug_cowboy, "~> 2.6", [hex: :plug_cowboy, repo: "hexpm", optional: true]}, {:websock, "~> 0.5", [hex: :websock, repo: "hexpm", optional: false]}], "hexpm", "e04378d26b0af627817ae84c92083b7e97aca3121196679b73c73b99d0d133ea"}, From a1d792e0e132e8a134165c232a4751a2b7c44923 Mon Sep 17 00:00:00 2001 From: Samuel Owen Date: Sun, 5 May 2024 14:56:07 +0100 Subject: [PATCH 3/3] feat: :wrench: add TailwindFormatter and Phoenix.LiveView.HTMLFormatter --- .formatter.exs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.formatter.exs b/.formatter.exs index d2cda26..dc75863 100644 --- a/.formatter.exs +++ b/.formatter.exs @@ -1,4 +1,11 @@ # Used by "mix format" [ - inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"] + plugins: [TailwindFormatter, Phoenix.LiveView.HTMLFormatter], + inputs: [ + "{mix,.formatter}.exs", + "{config,lib,test}/**/*.{ex,exs}", + "*.{heex,ex,exs}", + "priv/*/seeds.exs", + "{config,lib,test}/**/*.{heex,ex,exs}" + ] ]