diff options
Diffstat (limited to 'example/build.sbt')
-rw-r--r-- | example/build.sbt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/example/build.sbt b/example/build.sbt new file mode 100644 index 0000000..ceefedc --- /dev/null +++ b/example/build.sbt @@ -0,0 +1,25 @@ +// 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();" + +updateBrowsers <<= updateBrowsers.triggeredBy(ScalaJSKeys.fastOptJS in Compile) + |