-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
64 lines (53 loc) · 1.63 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
61
62
63
64
import CommonSettings._
import Dependencies._
import sbt.Keys._
import sbt.Project.projectToRef
scalaVersion := scalaV.compiler_2_12
name := projectName
publishMavenStyle := false
lazy val web = (
PlayProject("web")
settings(
libraryDependencies ++= webDependencies ++
commonDependencies
)
settings(
publishMavenStyle := false,
routesGenerator := InjectedRoutesGenerator,
scalaJSProjects := jsProjects,
pipelineStages in Assets := Seq(scalaJSPipeline),
pipelineStages := Seq(digest, gzip),
buildInfoPackage := "build",
buildInfoOptions += BuildInfoOption.ToMap,
buildInfoKeys ++= Seq (
"projectName" -> projectName
),
herokuAppName in Compile := "play-scalajs-orientdb-seed"
)
).
dependsOn (sharedJS_JVM, Dependencies.gitDependencies.orientDbMigrations)
lazy val scalaJS = (
ScalaJsProject("scalaJS")
settings(
libraryDependencies ++=
scalaJs.sharedDependencies.value ++
scalaJsDependencies
)
settings(
skip in packageJSDependencies := true,
scalaJSStage in Global := FastOptStage,
herokuAppName in Compile := "play-scalajs-orientdb-seed"
)
) dependsOn sharedJS_JS
lazy val jsProjects = Seq(scalaJS)
lazy val sharedJS = (
SharedJsProject("sharedJS")
settings(
libraryDependencies ++= sharedJsDependencies
)
)
lazy val sharedJS_JS = sharedJS.js
lazy val sharedJS_JVM = sharedJS.jvm
fork in run := true
// loads the Play project at sbt startup
onLoad in Global := (Command.process("project web", _: State)) compose (onLoad in Global).value