Skip to content

Commit

Permalink
Use scalajs-react in an effect-agnostic way
Browse files Browse the repository at this point in the history
  • Loading branch information
japgolly committed Jul 30, 2021
1 parent 6924ac9 commit d68c301
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ object ScalaCssBuild {
.settings(
moduleName := "ext-react",
libraryDependencies ++= Seq(
Dep.scalaJsReactCore.value,
Dep.scalaJsReactCoreGen.value % Provided,
Dep.scalaJsReactTest.value % Test,
Dep.cats.value % Test,
),
Expand Down
27 changes: 14 additions & 13 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,20 @@ object Dependencies {
}

object Dep {
val cats = Def.setting("org.typelevel" %%% "cats-core" % Ver.cats)
val microlibsTestUtil = Def.setting("com.github.japgolly.microlibs" %%% "test-util" % Ver.microlibs)
val nyayaGen = Def.setting("com.github.japgolly.nyaya" %%% "nyaya-gen" % Ver.nyaya)
val nyayaProp = Def.setting("com.github.japgolly.nyaya" %%% "nyaya-prop" % Ver.nyaya)
val nyayaTest = Def.setting("com.github.japgolly.nyaya" %%% "nyaya-test" % Ver.nyaya)
val scalaCompiler = Def.setting("org.scala-lang" % "scala-compiler" % scalaVersion.value)
val scalaJsDom = Def.setting("org.scala-js" %%% "scalajs-dom" % Ver.scalaJsDom)
val scalaJsReactCore = Def.setting("com.github.japgolly.scalajs-react" %%% "core" % Ver.scalaJsReact)
val scalaJsReactTest = Def.setting("com.github.japgolly.scalajs-react" %%% "test" % Ver.scalaJsReact)
val scalaReflect = Def.setting("org.scala-lang" % "scala-reflect" % scalaVersion.value)
val scalatags = Def.setting("com.lihaoyi" %%% "scalatags" % Ver.scalatags)
val univEq = Def.setting("com.github.japgolly.univeq" %%% "univeq" % Ver.univEq)
val utest = Def.setting("com.lihaoyi" %%% "utest" % Ver.utest)
val cats = Def.setting("org.typelevel" %%% "cats-core" % Ver.cats)
val microlibsTestUtil = Def.setting("com.github.japgolly.microlibs" %%% "test-util" % Ver.microlibs)
val nyayaGen = Def.setting("com.github.japgolly.nyaya" %%% "nyaya-gen" % Ver.nyaya)
val nyayaProp = Def.setting("com.github.japgolly.nyaya" %%% "nyaya-prop" % Ver.nyaya)
val nyayaTest = Def.setting("com.github.japgolly.nyaya" %%% "nyaya-test" % Ver.nyaya)
val scalaCompiler = Def.setting("org.scala-lang" % "scala-compiler" % scalaVersion.value)
val scalaJsDom = Def.setting("org.scala-js" %%% "scalajs-dom" % Ver.scalaJsDom)
val scalaJsReactCore = Def.setting("com.github.japgolly.scalajs-react" %%% "core" % Ver.scalaJsReact)
val scalaJsReactCoreGen = Def.setting("com.github.japgolly.scalajs-react" %%% "core-generic" % Ver.scalaJsReact)
val scalaJsReactTest = Def.setting("com.github.japgolly.scalajs-react" %%% "test" % Ver.scalaJsReact)
val scalaReflect = Def.setting("org.scala-lang" % "scala-reflect" % scalaVersion.value)
val scalatags = Def.setting("com.lihaoyi" %%% "scalatags" % Ver.scalatags)
val univEq = Def.setting("com.github.japgolly.univeq" %%% "univeq" % Ver.univEq)
val utest = Def.setting("com.lihaoyi" %%% "utest" % Ver.utest)
}

def addReactJsDependencies(scope: Configuration): Project => Project =
Expand Down

0 comments on commit d68c301

Please sign in to comment.