Scala.js comes with an sbt plugin that facilitates compiling, running and testing with Scala.js. For a quick start, have a look at our bootstrapping skeleton.
Load the sbt plugin (project/plugins.sbt)
1. addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.0.0")
Enable the plugin on the sbt project (build.sbt):
1. lazy val root = project.
2. enablePlugins(ScalaJSPlugin)
If you are using a Build.scala definition, import the following:
1. import org.scalajs.sbtplugin.ScalaJSPlugin
2. import org.scalajs.sbtplugin.ScalaJSPlugin.autoImport._
Next we’ll look into the building process in more detail.
