- copy and paste in terminal.
scala-cli --version && \
cs version && \
git clone https://github.com/Quafadas/viteless.git && \
cd viteless && \
cs launch --contrib sjsls
- Edit hello.scala - observe live reload.
It is assumed, that scala-clia, coursier and just are installed, and that
scala-cli --version
, cs version
prints something reasonable. Use scala-cli 1.3.2+ for the best experience.
See the justfile.
The main branch is the "hello world" example. To run it, use just dev
.
The spa_style_deps branch is a more complex example that
- uses waypoint for client side routing
- reloads style changed without page refresh
- uses shoelace
Switch to that branch and run just dev
.
Usually at some point, you'll want to write your own index.html. You can server that out of the