You need a working nodejs.
To run the example and continuously monitor the output to run directly in node:
npm install
Then either start up vscode or your favorite editor. In a terminal or have your editor/IDE run:
sbt ~fastOptJS
and separately:
npx nodemon -x "node --enable-source-maps" main/target/scala-3.0.0-M1/main-fastopt.js
If you are using the nightly build which uses "the next" version, use:
npx nodemon -x "node --enable-source-maps" main/target/scala-3.0.0-M1/main-fastopt.js
The main initializer is set to true in build.sbt so it will run the dotty scalajs javascript like a script.
Feel free to add js packages via npm install <package>
and use a facade to include
them in your scala program.
More dotty examples are at the scala example project: https://github.com/lampepfl/dotty-example-project
MIT License.
See LICENSE.