From 2c4b142503bd2d871e6818b5cab8c38627d9e4a0 Mon Sep 17 00:00:00 2001 From: Haoyi Li Date: Wed, 26 Nov 2014 00:45:31 -0800 Subject: Squashed 'examples/scala-js/' content from commit 47311ba git-subtree-dir: examples/scala-js git-subtree-split: 47311ba693f949f204f27ea9475bb63425fbd4f3 --- sbt-plugin-test/build.sbt | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 sbt-plugin-test/build.sbt (limited to 'sbt-plugin-test/build.sbt') diff --git a/sbt-plugin-test/build.sbt b/sbt-plugin-test/build.sbt new file mode 100644 index 0000000..dd2e12e --- /dev/null +++ b/sbt-plugin-test/build.sbt @@ -0,0 +1,44 @@ +import scala.scalajs.sbtplugin.RuntimeDOM + +name := "Scala.js sbt test" + +version := scalaJSVersion + +val baseSettings = 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: _*). + enablePlugins(ScalaJSPlugin). + settings( + name := "Scala.js sbt test w/o DOM" + ) + +lazy val withDOM = project.settings(baseSettings: _*). + enablePlugins(ScalaJSPlugin). + settings( + name := "Scala.js sbt test w/ DOM", + jsDependencies ++= Seq( + RuntimeDOM, + "org.webjars" % "jquery" % "1.10.2" / "jquery.js" + ) + ) + +lazy val jetty9 = project.settings(baseSettings: _*). + enablePlugins(ScalaJSPlugin). + settings( + name := "Scala.js sbt test with jetty9 on classpath", + jsDependencies ++= Seq( + RuntimeDOM, + "org.webjars" % "jquery" % "1.10.2" / "jquery.js" + ), + // Use PhantomJS, allow cross domain requests + postLinkJSEnv := PhantomJSEnv(args = Seq("--web-security=no")).value, + Jetty9Test.runSetting + ) -- cgit v1.2.3