Learning-HTMX/scala-cli-cask-attempt
efim fd75be6abe feat: enabling TailwindCSS styling
with manual running of cli:
tailwindcss -i ./src/input.css -o ./dist/output.css --watch
2023-06-26 06:01:03 +00:00
..
src feat: enabling TailwindCSS styling 2023-06-26 06:01:03 +00:00
.project init: scala-cli project with some dependencies 2023-06-25 13:59:51 +00:00
.scalafmt.conf feat: adding simplest cask routes 2023-06-25 14:49:55 +00:00
Readme.org feat: adding simplest cask routes 2023-06-25 14:49:55 +00:00
tailwind.config.js feat: enabling TailwindCSS styling 2023-06-26 06:01:03 +00:00

Readme.org

Readme

attempting to set up something more complex in a single small project

adding dependencies:

//> using dep com.lihaoyi::pprint:0.8.1

this should be on the very top of the file, otherwise it's not visible to scala-cli

that was my error for a while - having package declaration on top

replicating simplest cask example

https://github.com/com-lihaoyi/cask/blob/master/example/minimalApplication/app/src/MinimalApplication.scala

and it works!

opening localhost:8080 shows "Hello world!"

and opening Network tab, refreshing to see get request, and doing "Edit and Resend" to issue Post to /do-thing with some text in body returns the result with test reversed.

this is really nice.

what i'd really like though is browser refresh.

i suppose that can be added to emacs? also on file save 🤷 somehow

for the future - more details on things of cask