Sometimes a simple HTML+CSS+JS toolchain is needed for rapid experimentation. However, speed comes at a cost, and TypeScript + esbuild might help.
- prerequisite: Go installed
go run .
- → http://localhost:8080/ui
- edit files in ui-src
- reload the browser and observe the result
In order for Typescript tooling to work in IDEs, run npm i
to fetch type dependencies.
Reformat the code using npm run prettier
.
Simply, copy all non-ignored files from this repo into your project and continue from there.
Initial experiment: https://github.com/d-led/esbuild-test