This repo contains tools to work with the Morphir IR on the JVM. It will include data models for the IR, JSON serialization and developer tooling.
Install npm on your system, then in the root of the project run:
npm install morphir-elmMorphir-jvm use mill as its build tool.
If you are using Visual Studio Code, IntelliJ, or any of the Editors which support BSP you can also generate BSP config files via:
./mill mill.bsp.BSP/installIf you are using IntelliJ IDEA to edit morphir-jvm's Scala code, you can create the IntelliJ project files via:
./mill mill.scalalib.GenIdea/ideaRun all tests:
./mill __.testor in watch mode:
./mill -w __.testCode needs to be formatted according to scalafmt rules. To run scalafmt on all the source code using:
./mill mill.scalalib.scalafmt.ScalafmtModule/reformatAll __.sourcesor in watch mode to reformat changed files:
./mill -w mill.scalalib.scalafmt.ScalafmtModule/reformatAll __.sourcesIf you are using IntelliJ IDEA to edit morphir-jvm's Scala code, you can create the IntelliJ project files via:
.\mill mill.scalalib.GenIdea/idea
If you are using Visual Studio Code, IntelliJ, or any of the Editors which support BSP you can also generate BSP config files via:
.\mill mill.bsp.BSP/install
.\mill __.test
or in watch mode:
.\mill -w __.test
Code needs to be formatted according to scalafmt rules. To run scalafmt on all the source code using:
.\mill mill.scalalib.scalafmt.ScalafmtModule/reformatAll __.sources
or in watch mode to reformat changed files:
.\mill -w mill.scalalib.scalafmt.ScalafmtModule/reformatAll __.sources