Fork me on GitHub
#babashka
<
2022-06-24
>
borkdude10:06:00

๐Ÿ† 1
littleli11:06:13

I'll try later today to package it as an app to scoop, but please be patient with me. Takes me ages to finish anything.

littleli11:06:32

I mean, to package it the same way we did with neil.

teodorlu12:06:22

Cool! Any plans on supporting live-reloading when assets change (like npx live-server), or is the go-to solution for that still to message the browser that it should reload itself?

borkdude13:06:39

Not sure yet. My solution to that was to use etaoin to view the site and then reload the browser

๐Ÿ‘ 1
borkdude13:06:09

etaoin now also works in babashka btw

๐Ÿ‘ 1
teodorlu13:06:12

Note - I haven't really given the etaoin path a chance, so that might be a better option. Link for the lazy: https://github.com/clj-commons/etaoin

borkdude14:06:34

I guess, since httpkit supports websockets, we could inject some websocket to signal a page refresh and have some extensibility to reload the page or so

borkdude14:06:00

but this might be a nice experiment for someone who really wants to figure that out

๐Ÿ‘ 1
teodorlu13:06:59

Code font is a bit small on my phone. Still readable :)

borkdude13:06:37

Oh right...

borkdude13:06:53

I'm not a CSS expert but if you know how to improve that, a PR to my blog is welcome

teodorlu13:06:41

Not a css expert myself either, unfortunately ๐Ÿ˜…

teodorlu13:06:26

Looks like you've really made what I'd like in a CLI lib - a thin layer to easily expose functions on the command line.

๐Ÿ‘ 1
teodorlu13:06:28

Thanks for making this! ๐Ÿ˜Š

โค๏ธ 1
borkdude19:06:35

Babashka http-server is now available on scoop (Windows). If you have installed the scoop clojure bucket, then you can run:

scoop install bb-http-server
and then run:
http-server
to serve static assets! Thanks @ales.najmann

๐Ÿš€ 2