blob: 0bca7030e6b31a60f50cb39ad3f083dc875c8f2e (
plain) (
blame)
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
|
// Turn this project into a Scala.js project by importing these settings
import scala.scalajs.sbtplugin.ScalaJSPlugin._
import ScalaJSKeys._
import com.lihaoyi.workbench.Plugin._
scalaJSSettings
workbenchSettings
name := "Example"
scalaVersion := "2.11.2"
version := "0.1-SNAPSHOT"
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"
libraryDependencies ++= Seq(
"org.scala-lang.modules.scalajs" %%% "scalajs-dom" % "0.6"
)
bootSnippet := "ScalaJSExample().main();"
ScalaJSKeys.inliningMode := scala.scalajs.sbtplugin.InliningMode.Off
spliceBrowsers <<= spliceBrowsers.triggeredBy(ScalaJSKeys.fastOptJS in Compile)
|