diff options
author | Haoyi Li <haoyi@haoyi-mbp.corp.dropbox.com> | 2014-11-26 00:44:45 -0800 |
---|---|---|
committer | Haoyi Li <haoyi@haoyi-mbp.corp.dropbox.com> | 2014-11-26 00:44:45 -0800 |
commit | b89ce9cbf79363f8cab09186a5d7ba94bc0af02a (patch) | |
tree | f68b3f02bad0375961bc99b972f6dc0f1f5dc5e7 /examples/workbench-example-app/build.sbt | |
parent | c50f0d417b34d7a8be432c34bac92088734a14ca (diff) | |
parent | f2f03076c55939e454b8e3ce71408c1fd9cd1994 (diff) | |
download | hands-on-scala-js-b89ce9cbf79363f8cab09186a5d7ba94bc0af02a.tar.gz hands-on-scala-js-b89ce9cbf79363f8cab09186a5d7ba94bc0af02a.tar.bz2 hands-on-scala-js-b89ce9cbf79363f8cab09186a5d7ba94bc0af02a.zip |
Merge commit 'f2f03076c55939e454b8e3ce71408c1fd9cd1994' as 'examples/workbench-example-app'
Diffstat (limited to 'examples/workbench-example-app/build.sbt')
-rw-r--r-- | examples/workbench-example-app/build.sbt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/examples/workbench-example-app/build.sbt b/examples/workbench-example-app/build.sbt new file mode 100644 index 0000000..4f7e197 --- /dev/null +++ b/examples/workbench-example-app/build.sbt @@ -0,0 +1,21 @@ +import scala.scalajs.sbtplugin.ScalaJSPlugin._ +import com.lihaoyi.workbench.Plugin._ + +scalaJSSettings + +workbenchSettings + +name := "Example" + +version := "0.1-SNAPSHOT" + +scalaVersion := "2.11.2" + +libraryDependencies ++= Seq( + "org.scala-lang.modules.scalajs" %%% "scalajs-dom" % "0.6" +) + +bootSnippet := "ScalaJSExample().main(document.getElementById('canvas'));" + +updateBrowsers <<= updateBrowsers.triggeredBy(ScalaJSKeys.fastOptJS in Compile) + |