Skip to content

Commit

Permalink
Makefile if people arent up for it
Browse files Browse the repository at this point in the history
  • Loading branch information
The1Penguin committed Oct 24, 2024
1 parent 61231d9 commit c05679c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.PHONY: up

up:
tailwindcss --content src/View.hs --output static/style.css --minify
cabal clean
cabal run
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c05679c

Please sign in to comment.