From 472c07343576302017d3aadf09bb03e6462f6183 Mon Sep 17 00:00:00 2001 From: adamw Date: Sat, 12 Jun 2021 08:47:41 +0200 Subject: [PATCH] Add scala.js build --- build.sbt | 3 +++ project/build.properties | 2 +- project/plugins.sbt | 4 +++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/build.sbt b/build.sbt index e903c5d6..73a3e654 100644 --- a/build.sbt +++ b/build.sbt @@ -23,6 +23,7 @@ lazy val core = (projectMatrix in file(".core")) Compile / scalaSource := baseDirectory.value / ".." / ".." / ".." / "src" / "core", ) .jvmPlatform(scalaVersions = List(scala3)) + .jsPlatform(scalaVersions = List(scala3)) lazy val examples = (projectMatrix in file(".examples")) .dependsOn(core) @@ -32,6 +33,7 @@ lazy val examples = (projectMatrix in file(".examples")) Compile / scalaSource := baseDirectory.value / ".." / ".." / ".." / "src" / "examples", ) .jvmPlatform(scalaVersions = List(scala3)) + .jsPlatform(scalaVersions = List(scala3)) lazy val test = (projectMatrix in file(".test")) .dependsOn(examples) @@ -46,3 +48,4 @@ lazy val test = (projectMatrix in file(".test")) publishArtifact := false, ) .jvmPlatform(scalaVersions = List(scala3)) + .jsPlatform(scalaVersions = List(scala3)) diff --git a/project/build.properties b/project/build.properties index f0be67b9..67d27a1d 100644 --- a/project/build.properties +++ b/project/build.properties @@ -1 +1 @@ -sbt.version=1.5.1 +sbt.version=1.5.3 diff --git a/project/plugins.sbt b/project/plugins.sbt index 22878c0a..0ce6e639 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -2,4 +2,6 @@ addSbtPlugin("com.eed3si9n" % "sbt-projectmatrix" % "0.8.0") val sbtSoftwareMillVersion = "2.0.3" addSbtPlugin("com.softwaremill.sbt-softwaremill" % "sbt-softwaremill-common" % sbtSoftwareMillVersion) -addSbtPlugin("com.softwaremill.sbt-softwaremill" % "sbt-softwaremill-publish" % sbtSoftwareMillVersion) \ No newline at end of file +addSbtPlugin("com.softwaremill.sbt-softwaremill" % "sbt-softwaremill-publish" % sbtSoftwareMillVersion) + +addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.6.0")