summaryrefslogtreecommitdiff
path: root/example/build.sbt
diff options
context:
space:
mode:
authorLi Haoyi <haoyi@dropbox.com>2014-08-10 15:55:15 -0700
committerLi Haoyi <haoyi@dropbox.com>2014-08-10 15:55:15 -0700
commit2c178fdd460a460586e8dd8986772f5d6fe681d0 (patch)
tree994bffd4ab11bb30889b6c2ed6c18c1822909943 /example/build.sbt
parent1b85755a67fef592af64d11d33ad674f8d6a56b1 (diff)
downloadworkbench-2c178fdd460a460586e8dd8986772f5d6fe681d0.tar.gz
workbench-2c178fdd460a460586e8dd8986772f5d6fe681d0.tar.bz2
workbench-2c178fdd460a460586e8dd8986772f5d6fe681d0.zip
Copy in an example project for better development
Diffstat (limited to 'example/build.sbt')
-rw-r--r--example/build.sbt25
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)
+