Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aappddeevv/dotty-scalajs
Example running dotty scalajs; uses nodejs to run the output script
https://github.com/aappddeevv/dotty-scalajs
Last synced: 10 days ago
JSON representation
Example running dotty scalajs; uses nodejs to run the output script
- Host: GitHub
- URL: https://github.com/aappddeevv/dotty-scalajs
- Owner: aappddeevv
- License: mit
- Created: 2020-09-08T21:11:00.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-07-30T01:07:08.000Z (over 3 years ago)
- Last Synced: 2024-10-15T02:34:20.879Z (23 days ago)
- Language: Scala
- Size: 14.6 KB
- Stars: 11
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dotty scalajs
You need a working nodejs.
To run the example and continuously monitor the output to run directly in node:
```sh
npm install
```Then either start up vscode or your favorite editor. In a terminal or have your editor/IDE run:
```sh
sbt ~fastOptJS
```and separately:
```sh
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:
```sh
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 ` and use a facade to include
them in your scala program.## More dotty examples
More dotty examples are at the scala example project: https://github.com/lampepfl/dotty-example-project
## License
MIT License.
See LICENSE.