Skip to content

Commit

Permalink
Add golemScalaOutputDirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
danieletorelli committed May 8, 2024
1 parent 8463f5b commit 9c1f785
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 16 deletions.
1 change: 1 addition & 0 deletions src/main/scala/cloud/golem/GolemScalaPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import sbt.plugins.JvmPlugin

object GolemScalaPlugin extends AutoPlugin {
object autoImport {
lazy val golemScalaOutputDirectory = settingKey[File]("Output directory")
lazy val golemScalaWitPath = settingKey[File]("Path to the wit file")
lazy val golemScalaPackageName = settingKey[String]("Package name")
lazy val witBindgen =
Expand Down
1 change: 1 addition & 0 deletions src/main/scala/cloud/golem/GolemScalaPluginInternal.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ private[golem] object GolemScalaPluginInternal {

lazy val baseSettings: Seq[Setting[?]] =
Def.settings(
golemScalaOutputDirectory := target.value / "dist",
golemScalaWitPath := (ThisBuild / baseDirectory).value / "wit",
golemScalaPackageName := "main",
witBindgen := {
Expand Down
16 changes: 8 additions & 8 deletions src/sbt-test/golem-scala/example1/test
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
> +clean
> +fullLinkJS
$ exists target/scala-2.12/root-opt/main.js
$ exists target/scala-2.12/root-opt/main.js.map
$ exists target/scala-2.13/root-opt/main.js
$ exists target/scala-2.13/root-opt/main.js.map
$ exists target/dist/main.js
$ exists target/dist/main.js.map
$ exists target/dist/main.js
$ exists target/dist/main.js.map
> +clean
> +fastLinkJS
$ exists target/scala-2.12/root-fastopt/main.js
$ exists target/scala-2.12/root-fastopt/main.js.map
$ exists target/scala-2.13/root-fastopt/main.js
$ exists target/scala-2.13/root-fastopt/main.js.map
$ exists target/dist/main.js
$ exists target/dist/main.js.map
$ exists target/dist/main.js
$ exists target/dist/main.js.map
16 changes: 8 additions & 8 deletions src/sbt-test/golem-scala/example2/test
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
> +clean
> +fullLinkJS
$ exists target/scala-2.12/root-opt/main.js
$ exists target/scala-2.12/root-opt/main.js.map
$ exists target/scala-2.13/root-opt/main.js
$ exists target/scala-2.13/root-opt/main.js.map
$ exists target/dist/main.js
$ exists target/dist/main.js.map
$ exists target/dist/main.js
$ exists target/dist/main.js.map
> +clean
> +fastLinkJS
$ exists target/scala-2.12/root-fastopt/main.js
$ exists target/scala-2.12/root-fastopt/main.js.map
$ exists target/scala-2.13/root-fastopt/main.js
$ exists target/scala-2.13/root-fastopt/main.js.map
$ exists target/dist/main.js
$ exists target/dist/main.js.map
$ exists target/dist/main.js
$ exists target/dist/main.js.map

0 comments on commit 9c1f785

Please sign in to comment.