-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
34 lines (22 loc) · 1.01 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Turn this project into a Scala.js project by importing these settings
import scala.scalajs.sbtplugin.ScalaJSPlugin._
import ScalaJSKeys._
import scala.js.workbench.Plugin._
scalaJSSettings
buildSettingsX
name := "travisStub"
version := "0.1-SNAPSHOT"
libraryDependencies ++= Seq(
"org.scala-lang.modules.scalajs" %% "scalajs-jquery" % "0.3-SNAPSHOT",
"org.scala-lang.modules.scalajs" %% "scalajs-dom" % "0.3-SNAPSHOT",
"org.scala-lang.modules.scalajs" %% "scalajs-jasmine-test-framework" % scalaJSVersion % "test",
"org.webjars" % "envjs" % "1.2" % "test"
)
// Specify additional .js file to be passed to package-js and optimize-js
unmanagedSources in (Compile, ScalaJSKeys.packageJS) +=
baseDirectory.value / "js" / "startup.js"
ScalaJSKeys.packageJS in Compile := {
(ScalaJSKeys.packageJS in Compile).value :+ generateClient.value
}
bootSnippet := "ScalaJS.modules.travisTest.travisstub_Travisstub().main();"
updateBrowsers <<= updateBrowsers.triggeredBy(ScalaJSKeys.packageJS in Compile)