-
Notifications
You must be signed in to change notification settings - Fork 14
/
build.sbt
60 lines (54 loc) · 2.16 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import sbt.Project.projectToRef
lazy val clients = Seq(scalajsclient)
lazy val scalaV = "2.11.8"
lazy val playserver = (project in file("play")).settings(
scalaVersion := scalaV,
scalaJSProjects := clients,
pipelineStages in Assets := Seq(scalaJSPipeline),
routesGenerator := InjectedRoutesGenerator,
libraryDependencies ++= Seq(
"com.vmunier" %% "play-scalajs-scripts" % "0.5.0",
"org.webjars" %% "webjars-play" % "2.5.0-4",
"org.webjars" % "ace" % "01.08.2014",
"org.webjars" % "jquery" % "1.12.4",
"org.webjars" % "bootstrap" % "4.0.0-alpha.5",
"org.webjars" % "octicons" % "4.3.0",
"org.scala-lang" % "scala-compiler" % "2.11.8",
"org.scala-js" % "scalajs-compiler_2.11.8" % "0.6.14",
"org.scala-lang.modules" %% "scala-async" % "0.9.6",
"org.scala-js" %% "scalajs-tools" % "0.6.14"
)
).enablePlugins(PlayScala).
aggregate(clients.map(projectToRef): _*).
dependsOn(sharedJvm)
lazy val scalajsclient = (project in file("scalajs")).settings(
scalaVersion := scalaV,
persistLauncher := true,
persistLauncher in Test := false,
resolvers ++= Seq(
"amateras-repo" at "http://amateras.sourceforge.jp/mvn/",
"amateras-snapshot-repo" at "http://amateras.sourceforge.jp/mvn-snapshot/"
),
libraryDependencies ++= Seq(
"org.scala-js" %%% "scalajs-dom" % "0.9.1",
"be.doeraene" %%% "scalajs-jquery" % "0.9.1",
"com.lihaoyi" %%% "upickle" % "0.4.4",
"com.scalawarrior" %%% "scalajs-createjs" % "0.0.2",
//"com.scalawarrior" %%% "scalajs-ace" % "0.0.1-SNAPSHOT",
"org.scala-lang.modules" %% "scala-async" % "0.9.1" % "provided"
)
).enablePlugins(ScalaJSPlugin, ScalaJSWeb).
dependsOn(sharedJs)
lazy val shared = (crossProject.crossType(CrossType.Pure) in file("shared")).
settings(
scalaVersion := scalaV,
libraryDependencies ++= Seq(
"com.lihaoyi" %%% "scalatags" % "0.6.2",
"com.github.japgolly.scalacss" %%% "core" % "0.5.1"
)
).
jsConfigure(_ enablePlugins ScalaJSWeb)
lazy val sharedJvm = shared.jvm
lazy val sharedJs = shared.js
// loads the Play project at sbt startup
onLoad in Global := (Command.process("project playserver", _: State)) compose (onLoad in Global).value