/sandbox-scala-cross

Example project in Scala with cross-compile

Primary LanguageScala

Example sbt project cross-compiled with JS, JVM, and Native

Usage

This is a normal sbt project, you can compile code with sbt compile and run it with sbt run, sbt console will start a Dotty REPL. For more information on cross-compilation in sbt, see https://www.scala-sbt.org/1.x/docs/Cross-Build.html.

Create NPM package

> clean
> parserJS/npmPackageNpmrc
> parserJS/npmPackage
$ cd parser/js/target/scala-3.2.2/npm-package
$ npm link