From c05679cdf48182444526aeb5b639b3dd841b331e Mon Sep 17 00:00:00 2001 From: pingu Date: Thu, 24 Oct 2024 21:41:08 +0200 Subject: [PATCH] Makefile if people arent up for it --- Makefile | 6 ++++++ README.md | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f6ec85e --- /dev/null +++ b/Makefile @@ -0,0 +1,6 @@ +.PHONY: up + +up: + tailwindcss --content src/View.hs --output static/style.css --minify + cabal clean + cabal run diff --git a/README.md b/README.md index a66890a..567388f 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ cachix use pingu # Probably more up to date as of 5/6-24 Currently, the css framework used is [TailwindCSS](https://tailwindcss.com). To generate css, you can use the [Tailwinds cli](https://tailwindcss.com/blog/standalone-cli) program to generate the new css by running `tailwindcss --content src/View.hs --output static/style.css --minify`. -Worth noting is that the css is embedded in the binary, and changes to it aren't well captured by cabal, so `cabal clean && cabal run`. +Worth noting is that the css is embedded in the binary, and changes to it aren't well captured by cabal, so `cabal clean && cabal run` or `make up` that fixes the css file and then runs the program. When running `docker compose up --build`, the css file will be generated by it self. ## Credits