Skip to content

Commit

Permalink
Support ScalaJS.
Browse files Browse the repository at this point in the history
  • Loading branch information
tarao committed Nov 6, 2023
1 parent 4809283 commit b98bc3e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
15 changes: 9 additions & 6 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -49,25 +49,28 @@ lazy val commonSettings = Def.settings(
"""
)

lazy val root = (project in file("."))
lazy val root = tlCrossRootProject
.aggregate(core)
.settings(commonSettings)
.settings(
console := (core / Compile / console).value,
Test / console := (core / Test / console).value,
console := (core.jvm / Compile / console).value,
Test / console := (core.jvm / Test / console).value,
ThisBuild / Test / parallelExecution := false
)

lazy val core = (project in file("modules/core"))
lazy val core = crossProject(JVMPlatform, JSPlatform)
.crossType(CrossType.Pure)
.withoutSuffixFor(JVMPlatform)
.in(file("modules/core"))
.settings(commonSettings)
.settings(
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.2.17" % Test,
"org.scalatest" %%% "scalatest" % "3.2.17" % Test,
)
)

lazy val benchmark_3 = (project in file("modules/benchmark_3"))
.dependsOn(core)
.dependsOn(core.jvm)
.settings(commonSettings)
.enablePlugins(JmhPlugin)
.enablePlugins(NoPublishPlugin)
Expand Down
1 change: 1 addition & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.4.6")
addSbtPlugin("org.typelevel" % "sbt-typelevel" % "0.6.1")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.14.0")

0 comments on commit b98bc3e

Please sign in to comment.