Skip to content

Commit

Permalink
ScalaJS support
Browse files Browse the repository at this point in the history
  • Loading branch information
djspiewak committed Jan 20, 2021
1 parent f1cf5f9 commit ac9dc27
Show file tree
Hide file tree
Showing 20 changed files with 16 additions and 5 deletions.
19 changes: 14 additions & 5 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,23 @@ val CatsEffectVersion = "3.0.0-M5"

lazy val root = project
.in(file("."))
.aggregate(core, specs2, /*utest,*/ minitest, scalatest)
.aggregate(
core.jvm,
core.js,
specs2.jvm,
specs2.js,
/*utest,*/
minitest.jvm,
minitest.js,
scalatest.jvm,
scalatest.js)
.enablePlugins(NoPublishPlugin)

lazy val core = project
lazy val core = crossProject(JSPlatform, JVMPlatform)
.in(file("core"))
.settings(libraryDependencies += "org.typelevel" %% "cats-effect" % CatsEffectVersion)

lazy val specs2 = project
lazy val specs2 = crossProject(JSPlatform, JVMPlatform)
.in(file("specs2"))
.dependsOn(core)
.settings(
Expand All @@ -57,7 +66,7 @@ lazy val specs2 = project
libraryDependencies += "org.specs2" %% "specs2-core" % "4.10.5")
.settings(dottyLibrarySettings)

lazy val scalatest = project
lazy val scalatest = crossProject(JSPlatform, JVMPlatform)
.in(file("scalatest"))
.dependsOn(core)
.settings(
Expand All @@ -78,7 +87,7 @@ lazy val scalatest = project
"org.typelevel" %% "cats-effect-testkit" % CatsEffectVersion,
"com.lihaoyi" %% "utest" % "0.7.5"))*/

lazy val minitest = project
lazy val minitest = crossProject(JSPlatform, JVMPlatform)
.in(file("minitest"))
.dependsOn(core)
.settings(
Expand Down
2 changes: 2 additions & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
addSbtPlugin("com.codecommit" % "sbt-spiewak-sonatype" % "0.20.1")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.3.1")
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.0.0")

0 comments on commit ac9dc27

Please sign in to comment.