name := "Scala.js SBT test"

version := scalaJSVersion

val baseSettings = scalaJSSettings ++ Seq(
  version := scalaJSVersion,
  scalaVersion := "2.11.2",
  libraryDependencies +=
    "org.scala-lang.modules.scalajs" %% "scalajs-jasmine-test-framework" % scalaJSVersion % "test"
)

lazy val root = project.in(file(".")).aggregate(noDOM, withDOM)

lazy val noDOM = project.settings(baseSettings: _*).settings(
  name := "Scala.js SBT test w/o DOM"
)

lazy val withDOM = project.settings(baseSettings: _*).settings(
  ScalaJSKeys.requiresDOM := true,
  ScalaJSKeys.jsDependencies +=
    "org.webjars" % "jquery" % "1.10.2" / "jquery.js"
)

import ScalaJSKeys._

import scala.scalajs.sbtplugin.RuntimeDOM

name := "Scala.js sbt test"

version := scalaJSVersion

val baseSettings = scalaJSSettings ++ Seq(
  version := scalaJSVersion,
  scalaVersion := "2.11.2",
  libraryDependencies +=
    "org.scala-lang.modules.scalajs" %% "scalajs-jasmine-test-framework" % scalaJSVersion % "test"
)

lazy val root = project.in(file(".")).aggregate(noDOM, withDOM)

lazy val noDOM = project.settings(baseSettings: _*).settings(
  name := "Scala.js sbt test w/o DOM"
)

lazy val withDOM = project.settings(baseSettings: _*).settings(
  name := "Scala.js sbt test w/ DOM",
  jsDependencies ++= Seq(
      RuntimeDOM,
      "org.webjars" % "jquery" % "1.10.2" / "jquery.js"
  )
)

Clean up standalone sbt test project
Clean up standalone sbt test project
