An open API service indexing awesome lists of open source software.

https://github.com/na4zagin3/sandbox-scala-cross

Example project in Scala with cross-compile
https://github.com/na4zagin3/sandbox-scala-cross

Last synced: 3 months ago
JSON representation

Example project in Scala with cross-compile

Awesome Lists containing this project

README

        

## 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 .

### Create NPM package

```sbt
> clean
> parserJS/npmPackageNpmrc
> parserJS/npmPackage
```

```sh
$ cd parser/js/target/scala-3.2.2/npm-package
$ npm link
```