scalajs
Installation
SKILL.md
Scala.js Skill
Scala.js compiles Scala source code to JavaScript, enabling type-safe, tooling-rich development for browsers and Node.js. This skill captures the canonical patterns, common pitfalls, and current (2025) ecosystem knowledge needed to produce high-quality Scala.js code and project setups.
Quick reference — read the right section
| Task | Section |
|---|---|
| New project from scratch | Project Setup |
| sbt configuration | references/sbt-build.md |
| Mill configuration | references/mill-build.md |
| Laminar UI | references/laminar.md |
| JS interop / façades | references/interop.md |
| ScalablyTyped (npm → Scala types) | references/scalablytyped.md |
| Cross-building JVM + JS | references/cross-build.md |
| Testing | references/testing.md |
| WebAssembly output | references/wasm.md |
| Common errors | references/errors.md |