-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
37 lines (31 loc) · 1.17 KB
/
build.sbt
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
28
29
30
31
32
33
34
35
36
37
import sbt.Project.projectToRef
name := "ct-talk"
version := "0.0-SNAPSHOT"
lazy val root = baseDirectory
lazy val server = (project in file("server")).settings(
scalaVersion := "2.11.7",
scalaJSProjects := Seq(client),
pipelineStages := Seq(scalaJSProd),
libraryDependencies ++= Seq(
"com.vmunier" %% "play-scalajs-scripts" % "0.3.0",
"org.reactivemongo" %% "play2-reactivemongo" % "0.11.7.play24",
specs2 % Test
)
).enablePlugins(PlayScala)
.aggregate(projectToRef(client))
.dependsOn(client)
lazy val client = (project in file("client")).settings(
scalaVersion := "2.11.7",
persistLauncher := true,
persistLauncher in Test := false,
libraryDependencies ++= Seq(
"org.scala-js" %%% "scalajs-dom" % "0.8.0",
"com.greencatsoft" %%% "scalajs-angular" % "0.6",
"com.lihaoyi" %%% "upickle" % "0.3.6"
),
jsDependencies += "org.webjars" % "angularjs" % "1.3.14" / "angular.js",
skip in packageJSDependencies := false
).enablePlugins(ScalaJSPlugin, ScalaJSPlay)
// loads the Play project at sbt startup
onLoad in Global := (Command.process("project server", _: State)) compose (onLoad in Global).value
routesGenerator := InjectedRoutesGenerator