<commit_before>enablePlugins(ScalaJSPlugin)
enablePlugins(JSDependenciesPlugin)

name := "slinky-scalajsreact-interop"

libraryDependencies ++= {
  CrossVersion.partialVersion(scalaVersion.value) match {
    case Some((2, _)) =>
      Seq(
        "com.github.japgolly.scalajs-react" %%% "core" % "1.7.7"
      )
    case _ =>
      Seq(
        "com.github.japgolly.scalajs-react" %%% "core" % "2.0.0-RC1"
      )
  }
}

libraryDependencies += "org.scalatest" %%% "scalatest" % "3.2.9" % Test

Test / jsEnv := new org.scalajs.jsenv.jsdomnodejs.JSDOMNodeJSEnv()

Test / unmanagedResourceDirectories += baseDirectory.value / "node_modules"

jsDependencies ++= Seq(
  ((ProvidedJS / "react/umd/react.development.js")
    .minified("react/umd/react.production.min.js")
    .commonJSName("React")) % Test,
  ((ProvidedJS / "react-dom/umd/react-dom.development.js")
    .minified("react-dom/umd/react-dom.production.min.js")
    .dependsOn("react/umd/react.development.js")
    .commonJSName("ReactDOM")) % Test,
  ((ProvidedJS / "react-dom/umd/react-dom-test-utils.development.js")
    .minified("react-dom/umd/react-dom-test-utils.production.min.js")
    .dependsOn("react-dom/umd/react-dom.development.js")
    .commonJSName("ReactTestUtils")) % Test,
  ((ProvidedJS / "react-dom/umd/react-dom-server.browser.development.js")
    .minified("react-dom/umd/react-dom-server.browser.production.min.js")
    .dependsOn("react-dom/umd/react-dom.development.js")
    .commonJSName("ReactDOMServer")) % Test
)<commit_msg>Bump Scala.js React RC version for Scala 3<commit_after>enablePlugins(ScalaJSPlugin)
enablePlugins(JSDependenciesPlugin)

name := "slinky-scalajsreact-interop"

libraryDependencies ++= {
  CrossVersion.partialVersion(scalaVersion.value) match {
    case Some((2, _)) =>
      Seq(
        "com.github.japgolly.scalajs-react" %%% "core" % "1.7.7"
      )
    case _ =>
      Seq(
        "com.github.japgolly.scalajs-react" %%% "core" % "2.0.0-RC5"
      )
  }
}

libraryDependencies += "org.scalatest" %%% "scalatest" % "3.2.9" % Test

Test / jsEnv := new org.scalajs.jsenv.jsdomnodejs.JSDOMNodeJSEnv()

Test / unmanagedResourceDirectories += baseDirectory.value / "node_modules"

jsDependencies ++= Seq(
  ((ProvidedJS / "react/umd/react.development.js")
    .minified("react/umd/react.production.min.js")
    .commonJSName("React")) % Test,
  ((ProvidedJS / "react-dom/umd/react-dom.development.js")
    .minified("react-dom/umd/react-dom.production.min.js")
    .dependsOn("react/umd/react.development.js")
    .commonJSName("ReactDOM")) % Test,
  ((ProvidedJS / "react-dom/umd/react-dom-test-utils.development.js")
    .minified("react-dom/umd/react-dom-test-utils.production.min.js")
    .dependsOn("react-dom/umd/react-dom.development.js")
    .commonJSName("ReactTestUtils")) % Test,
  ((ProvidedJS / "react-dom/umd/react-dom-server.browser.development.js")
    .minified("react-dom/umd/react-dom-server.browser.production.min.js")
    .dependsOn("react-dom/umd/react-dom.development.js")
    .commonJSName("ReactDOMServer")) % Test
)
{'fraction_non_alphanumeric': 0.17654765804127087, 'fraction_numerical': 0.0075335735342286275, 'mean_word_length': 3.779342723004695, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '900377', 'n_tokens_mistral': 1166, 'n_tokens_neox': 1141, 'n_words': 119}