summaryrefslogtreecommitdiff
path: root/build.sbt
diff options
context:
space:
mode:
authorLi Haoyi <haoyi@dropbox.com>2014-11-10 20:49:32 -0800
committerLi Haoyi <haoyi@dropbox.com>2014-11-10 20:49:32 -0800
commit916476a310661a0b81011e0af429f356d5cd36e7 (patch)
treeae0515e87b30681dd291bd78276a8f2edb6e1a4e /build.sbt
parentaaea4afbf3b47d623f396cb1eae247fa92053032 (diff)
downloadhands-on-scala-js-916476a310661a0b81011e0af429f356d5cd36e7.tar.gz
hands-on-scala-js-916476a310661a0b81011e0af429f356d5cd36e7.tar.bz2
hands-on-scala-js-916476a310661a0b81011e0af429f356d5cd36e7.zip
Small cleanup, book is now acyclic
Diffstat (limited to 'build.sbt')
-rw-r--r--build.sbt24
1 files changed, 19 insertions, 5 deletions
diff --git a/build.sbt b/build.sbt
index 9a40e85..c4e02c8 100644
--- a/build.sbt
+++ b/build.sbt
@@ -1,9 +1,11 @@
+
import scala.scalajs.sbtplugin.ScalaJSPlugin._
import ScalaJSKeys._
+
lazy val scalatexApi = project.in(file("scalatexApi"))
.settings(
- scalaVersion := "2.11.2",
+ scalaVersion := "2.11.4",
libraryDependencies ++= Seq(
"com.lihaoyi" %% "utest" % "0.2.4",
"com.scalatags" %% "scalatags" % "0.4.2",
@@ -20,7 +22,7 @@ lazy val scalatexPlugin = Project(
base = file("scalatexPlugin"),
dependencies = Seq(scalatexApi)
) settings (
- scalaVersion := "2.11.2",
+ scalaVersion := "2.11.4",
libraryDependencies += "org.scala-lang" % "scala-compiler" % scalaVersion.value,
publishArtifact in Compile := false
)
@@ -30,7 +32,7 @@ lazy val book = Project(
base = file("book"),
dependencies = Seq(scalatexApi)
).settings(
- scalaVersion := "2.11.2",
+ scalaVersion := "2.11.4",
libraryDependencies ++= Seq(
"org.webjars" % "highlightjs" % "8.2-1",
"org.scala-lang" % "scala-reflect" % scalaVersion.value,
@@ -57,8 +59,20 @@ lazy val book = Project(
},
(watchSources in Test) ++= {
((sourceDirectory in Test).value / "scalatex" ** "*.scalatex").get
- }
+ },
+ libraryDependencies += "com.lihaoyi" %% "acyclic" % "0.1.2" % "provided",
+ autoCompilerPlugins := true,
+ addCompilerPlugin("com.lihaoyi" %% "acyclic" % "0.1.2")
)
-lazy val demos = project.in(file("examples/demos")) \ No newline at end of file
+lazy val demos = project.in(file("examples/demos"))
+
+lazy val simple = project.in(file("examples/crossBuilds/simple"))
+
+lazy val simple2 = project.in(file("examples/crossBuilds/simple2"))
+
+lazy val client = ProjectRef(file("examples/crossBuilds/clientserver"), "client")
+
+lazy val server = ProjectRef(file("examples/crossBuilds/clientserver"), "server")
+