Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/keynmol/scalajs-scala-cli-vite-template
Scala.js ❤️ Scala CLI ❤️ Vite
https://github.com/keynmol/scalajs-scala-cli-vite-template
scala scala-cli scalajs vite
Last synced: 3 months ago
JSON representation
Scala.js ❤️ Scala CLI ❤️ Vite
- Host: GitHub
- URL: https://github.com/keynmol/scalajs-scala-cli-vite-template
- Owner: keynmol
- License: unlicense
- Created: 2024-05-20T18:10:49.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-07-03T07:17:01.000Z (7 months ago)
- Last Synced: 2024-10-01T15:59:23.283Z (4 months ago)
- Topics: scala, scala-cli, scalajs, vite
- Language: Scala
- Homepage:
- Size: 28.3 KB
- Stars: 24
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [Scala.js](https://www.scala-js.org/) ❤️ [Scala CLI](https://scala-cli.virtuslab.org/) ❤️ [Vite](https://vitejs.dev/)
Minimal template to get you started with Scala.js, Scala CLI and Vite.
1. Run `npm install`
2. `npm run dev` - this will run both the Vite's dev server _and_ Scala.js continuous packaging, watching for any file changes
3. Happy hacking! Your project will reload automatically as you make changes to [index.scala](./index.scala)## Demo
https://github.com/keynmol/scalajs-scala-cli-vite-template/assets/1052965/c5447aef-317b-45a9-985d-bfb717d46461
## Caveats
Note that so far Scala CLI reloading is slower than what I usually experience in SBT. It's still fine, but if you want the fastest experience available,
consider using the [Vite plugin](https://github.com/scala-js/vite-plugin-scalajs) and the [SBT Vite template](https://github.com/scala-js/vite.g8) (`sbt new scala-js/vite.g8`)