Skip to content

Commit

Permalink
Merge pull request #9 from riiswa/main
Browse files Browse the repository at this point in the history
Add minimal support for Scala.js
  • Loading branch information
kitlangton authored Feb 11, 2022
2 parents 17009c5 + 1ebfd54 commit 6c08854
Show file tree
Hide file tree
Showing 22 changed files with 30 additions and 27 deletions.
39 changes: 20 additions & 19 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -38,71 +38,72 @@ val zioQueryVersion = "0.3.0-RC2"
val catsEffect3Version = "3.3.5"

lazy val root = (project in file("."))
.aggregate(core, zio)
.aggregate(core.js, core.jvm, zio.js, zio.jvm)
.settings(
name := "parallel-for",
crossScalaVersions := Nil,
skip / publish := true
)

lazy val core = (project in file("core"))
lazy val core = (crossProject(JSPlatform, JVMPlatform) in file("core"))
.settings(
name := "parallel-for",
libraryDependencies ++= Seq(
"org.scala-lang" % "scala-reflect" % scalaVersion.value,
"org.scala-lang" % "scala-compiler" % scalaVersion.value,
"dev.zio" %% "zio-test" % zio2Version % Test,
"dev.zio" %% "zio-test-sbt" % zio2Version % Test
"dev.zio" %%% "zio-test" % zio2Version % Test,
"dev.zio" %%% "zio-test-sbt" % zio2Version % Test
),
testFrameworks += new TestFramework("zio.test.sbt.ZTestFramework"),
sharedSettings
)
.enablePlugins(ScalaJSPlugin)

lazy val zio1 = (project in file("zio1"))
lazy val zio1 = (crossProject(JSPlatform, JVMPlatform) in file("zio1"))
.settings(
name := "parallel-for-zio-1",
libraryDependencies ++= Seq(
"dev.zio" %% "zio" % zio1Version,
"dev.zio" %% "zio-test" % zio1Version % Test,
"dev.zio" %% "zio-test-sbt" % zio1Version % Test
"dev.zio" %%% "zio" % zio1Version,
"dev.zio" %%% "zio-test" % zio1Version % Test,
"dev.zio" %%% "zio-test-sbt" % zio1Version % Test
),
testFrameworks += new TestFramework("zio.test.sbt.ZTestFramework"),
sharedSettings
)
.dependsOn(core)

lazy val zio = (project in file("zio"))
lazy val zio = (crossProject(JSPlatform, JVMPlatform) in file("zio"))
.settings(
name := "parallel-for-zio",
libraryDependencies ++= Seq(
"dev.zio" %% "zio" % zio2Version,
"dev.zio" %% "zio-test" % zio2Version % Test,
"dev.zio" %% "zio-test-sbt" % zio2Version % Test
"dev.zio" %%% "zio" % zio2Version,
"dev.zio" %%% "zio-test" % zio2Version % Test,
"dev.zio" %%% "zio-test-sbt" % zio2Version % Test
),
testFrameworks += new TestFramework("zio.test.sbt.ZTestFramework"),
sharedSettings
)
.dependsOn(core)

lazy val zioQuery = (project in file("zio-query"))
lazy val zioQuery = (crossProject(JSPlatform, JVMPlatform) in file("zio-query"))
.settings(
name := "parallel-for-zio-query",
libraryDependencies ++= Seq(
"dev.zio" %% "zio-query" % zioQueryVersion,
"dev.zio" %% "zio-test" % zio2Version % Test,
"dev.zio" %% "zio-test-sbt" % zio2Version % Test
"dev.zio" %%% "zio-query" % zioQueryVersion,
"dev.zio" %%% "zio-test" % zio2Version % Test,
"dev.zio" %%% "zio-test-sbt" % zio2Version % Test
),
testFrameworks += new TestFramework("zio.test.sbt.ZTestFramework"),
sharedSettings
)
.dependsOn(core)

lazy val catsEffect3 = (project in file("cats-effect-3"))
lazy val catsEffect3 = (crossProject(JSPlatform, JVMPlatform) in file("cats-effect-3"))
.settings(
name := "parallel-for-cats-effect-3",
libraryDependencies ++= Seq(
"org.typelevel" %% "cats-effect" % catsEffect3Version,
"com.disneystreaming" %% "weaver-cats" % "0.7.9" % Test
"org.typelevel" %%% "cats-effect" % catsEffect3Version,
"com.disneystreaming" %%% "weaver-cats" % "0.7.9" % Test
),
testFrameworks += new TestFramework("weaver.framework.CatsEffect"),
sharedSettings
Expand Down
18 changes: 10 additions & 8 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.3")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.10")
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.1.2")
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.32")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.7.1")
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.0.0")
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.6.0")
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.9")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.3")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.10")
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.1.2")
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.32")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.8.0")
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.1.0")
addSbtPlugin("org.portable-scala" % "sbt-scala-native-crossproject" % "1.1.0")
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.3")
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.6.0")
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.9")

0 comments on commit 6c08854

Please sign in to comment.