I wanted to build a desktop app and I had heard great things about Tauri. Unfortunately the existing templates for combining Elm with Tauri either didn’t work for me, or used different components than what I’d have picked.
So I developed my own template:
It took me quite a few tries to find a setup that worked well. (Elm Land didn’t work, Parcel crashed regularly, pure Elm is missing hot reloading, …). In the end I settled with:
elm-watch for hot reloading and bundling. (Since desktop apps don’t have to handle a URL, plain Elm is good enough.) Thanks @lydell for building it!
Vite would have been the next I thing I would have tried if elm-watch hadn’t worked . But I was happy with elm-watch, so I kept it. Is there anything I would gain by using Vite?
Bun is just for installing dependencies and executing the CLI tools. It’s really fast at that, so I like to use it for that nowadays. However, when setting up CI, I realized that it’s not working properly with Windows. So for the Windows build I’m actually using node.js now.