Skip to content

Commit

Permalink
Refactor build.sbt, tests
Browse files Browse the repository at this point in the history
  • Loading branch information
julianpeeters committed Dec 16, 2023
1 parent 8acb017 commit b3d25c9
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 18 deletions.
40 changes: 30 additions & 10 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -25,32 +25,52 @@ inThisBuild(List(
versionScheme := Some("semver-spec"),
))

lazy val root = project.in(file(".")).aggregate(tests)
lazy val root = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.in(file("."))
.aggregate(cats, scala)
.enablePlugins(NoPublishPlugin)
.jsSettings(test := {})
.nativeSettings(test := {})
.settings(test :=
Def.sequential(
(cats.jvm / Test / test),
(scala.jvm / Test / test)
).value
)

lazy val cats = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.in(file("modules/cats"))
.settings(
name := "destructured-cats",
libraryDependencies ++= Seq(
"org.typelevel" %%% "cats-core" % "2.10.0"
"org.typelevel" %%% "cats-core" % "2.10.0",
"org.scalameta" %%% "munit" % "0.7.29" % Test
)
)
.jsSettings(test := {})
.nativeSettings(test := {})


lazy val scala = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.in(file("modules/scala"))
.settings(
name := "destructured-scala",
)

lazy val tests = project.in(file("modules/tests"))
.settings(
name := "destructured-tests",
libraryDependencies ++= Seq(
"org.scalameta" %% "munit" % "0.7.29" % Test
"org.scalameta" %%% "munit" % "0.7.29" % Test
)
)
.dependsOn(cats.jvm, scala.jvm)
.enablePlugins(NoPublishPlugin)
.jsSettings(test := {})
.nativeSettings(test := {})

// lazy val tests = project.in(file("modules/tests"))
// .settings(
// name := "destructured-tests",
// libraryDependencies ++= Seq(
// "org.scalameta" %% "munit" % "0.7.29" % Test
// )
// )
// .dependsOn(cats.jvm, scala.jvm)
// .enablePlugins(NoPublishPlugin)

lazy val docs = project.in(file("docs/gitignored"))
.settings(
Expand Down
8 changes: 0 additions & 8 deletions modules/core/shared/src/main/scala/destructured/type.scala

This file was deleted.

0 comments on commit b3d25c9

Please sign in to comment.