-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
39 lines (36 loc) · 1.21 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
import com.lihaoyi.workbench.Plugin.{bootSnippet, _}
import sbt.Keys.libraryDependencies
lazy val commonSettings = Seq(
organization := "com.campudus",
scalaVersion := "2.12.1",
libraryDependencies ++= Seq(
"org.scala-js" %%% "scalajs-dom" % "0.9.1",
"com.github.lukajcb" %%% "rxscala-js" % "0.13.6",
"com.chuusai" %%% "shapeless" % "2.3.2",
"org.scalatest" %%% "scalatest" % "3.0.0" % "test"
),
jsDependencies ++= Seq(
RuntimeDOM,
"org.webjars.npm" % "rxjs" % "5.2.0" / "bundles/Rx.min.js" commonJSName "Rx"
)
)
lazy val scycle = (project in file("scycle"))
.enablePlugins(ScalaJSPlugin)
.settings(
commonSettings,
name := "Scycle",
version := "1.0.0"
)
lazy val scycleExamples = (project in file("scycle-examples"))
.dependsOn(scycle)
.enablePlugins(ScalaJSPlugin)
.settings(
commonSettings,
workbenchSettings,
name := "Scycle Examples",
version := "1.0.0",
scalaSource := baseDirectory.value / "src" / "examples" / "scala",
resourceDirectory := baseDirectory.value / "src" / "examples" / "resources",
updateBrowsers <<= updateBrowsers.triggeredBy(fastOptJS in Compile),
bootSnippet := "com.campudus.scycle.examples.ScycleApp().main();"
)