biff

Petar Radosevic 2024-02-14T06:57:33.358979Z

Has anybody looked into automatically refreshing the browser when a change is made? Seems like that would be a "quality-of-life" improvement when developing, maybe with something like https://github.com/weavejester/ring-refresh.

❤️ 3
2024-02-14T15:42:30.764749Z

it's been on my todo list for a while: https://github.com/jacobobryant/biff/issues/117 -- for about 2 years in fact! I should probably bump that up in priority since it's been brought up by a handful of people.

2024-02-14T16:43:50.193029Z

I just pushed a refresh-on-save branch that uses htmx websockets to refresh the web page whenever files are saved: https://github.com/jacobobryant/biff/commit/26c043e93f9cbc6531a7f48cbe9673a248e11fbe If there was a compilation error, that will be displayed on the web page instead of refreshing. I'll think of better names + clean this up and release it with Biff at some point; in the mean time you can go ahead and apply the changes from that commit to your own project(s).

👍 2
Petar Radosevic 2024-02-16T10:47:16.087269Z

That’s amazing, will implement this in my project, thank you!

🙌 1
2024-02-17T03:09:15.207349Z

Just made a release with this actually: https://github.com/jacobobryant/biff/discussions/188. I re-implemented it as a component so you only have to change a couple lines in your project.

🤩 5