Shorthands and dependency-aliases for ScalaJS projects
addSbtPlugin("org.hammerlab.sbt" % "js" % "2.0.0")
Scope cross-project dependencies:
lazy val a = cross // JS and JVM cross-project
lazy val b = cross.dependsOn(a test)
lazy val c = cross.dependsOn(a testtest)
Depend on scalajs-react:
react
Short for:
dep(
react.core,
css.core,
scalajs.dom
)
scalaJSUseMainModuleInitializer := true
npmDependencies in Compile ++= Seq(
"react" → jsVersion.value,
"react-dom" → jsVersion.value
)
etc.