-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.sbt
34 lines (28 loc) · 881 Bytes
/
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
val reactV = "16.2.0"
lazy val common = Seq(
version := "-",
libraryDependencies ++= Seq(
"com.github.japgolly.scalajs-react" %%% "core" % "1.2.3",
"org.scala-js" %%% "scalajs-dom" % "0.9.2"
),
jsDependencies ++= Seq(
"org.webjars.bower" % "react" % "15.2.1" / "react-with-addons.js" minified "react-with-addons.min.js" commonJSName "React",
"org.webjars.bower" % "react" % "15.2.1" / "react-dom.js" minified "react-dom.min.js" dependsOn "react-with-addons.js" commonJSName "ReactDOM"
),
scalaJSUseMainModuleInitializer := true
)
lazy val root = project
.in(file("."))
.aggregate(
myTalk,
shared
)
lazy val shared = project
.in(file("shared"))
.enablePlugins(ScalaJSPlugin)
.settings(common)
lazy val myTalk = project
.in(file("my-talk"))
.enablePlugins(ScalaJSPlugin)
.settings(common)
.dependsOn(shared)