diff --git a/README.md b/README.md index fc81abfe..35f9e0df 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,23 @@ The high level language that compiles to AIR and some wrappers in the host language (e.g. TypeScript). +## Build and use jar file +To build a file use this command: + +```commandline +sbt assembly +``` + + +jar file will be in `target/scala-2.13/aqua-hll.jar` + +Run: + +```commandline +java -jar aqua-hll.jar path/to/input/dir path/to/output/dir +``` +input directory should contain files with `aqua` scripts + ### TODO - Lambda diff --git a/build.sbt b/build.sbt index eb3640be..faecbd6c 100644 --- a/build.sbt +++ b/build.sbt @@ -12,6 +12,7 @@ lazy val root = project scalaVersion := dottyVersion, mainClass in (Compile, run) := Some("aqua.AquaGen"), mainClass in assembly := Some("aqua.AquaGen"), + assemblyJarName in assembly := "aqua-hll.jar", libraryDependencies ++= Seq( "org.typelevel" %% "cats-effect" % "3.0.0-RC2", "org.typelevel" %% "cats-parse" % "0.3.1", @@ -19,9 +20,9 @@ lazy val root = project "com.github.julien-truffaut" %% "monocle-core" % monocleV, "com.github.julien-truffaut" %% "monocle-macro" % monocleV, "co.fs2" %% "fs2-core" % "3.0.0-M7", - "co.fs2" %% "fs2-io" % "3.0.0-M7" - ), - libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.5" % Test + "co.fs2" %% "fs2-io" % "3.0.0-M7", + "org.scalatest" %% "scalatest" % "3.2.5" % Test + ) ) addCompilerPlugin("org.typelevel" %% "kind-projector" % "0.11.3" cross CrossVersion.full)