-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
63 lines (60 loc) · 2.32 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
import com.lihaoyi.workbench.WorkbenchBasePlugin.autoImport.WorkbenchStartModes.Manual
import com.lihaoyi.workbench.WorkbenchBasePlugin.autoImport.workbenchStartMode
import sbt.addCompilerPlugin
val http4sVersion = "0.18.9"
lazy val root = crossProject
.in(file("."))
.settings(
scalaVersion := "2.12.4",
organization := "be.olivierdeckers",
version := "0.1-SNAPSHOT",
libraryDependencies ++= Seq(
"com.lihaoyi" %%% "upickle" % "0.6.5",
"com.lihaoyi" %%% "autowire" % "0.2.6",
"com.lihaoyi" %%% "utest" % "0.6.3" % Test,
"org.typelevel" %%% "cats-core" % "1.1.0",
"eu.timepit" %%% "refined" % "0.9.0",
"io.circe" %%% "circe-generic" % "0.9.3",
"io.circe" %%% "circe-refined" % "0.9.3",
),
scalacOptions += "-Ypartial-unification",
testFrameworks += new TestFramework("utest.runner.Framework"),
)
.jsSettings(
name := "client",
libraryDependencies ++= Seq(
"org.scala-js" %%% "scalajs-dom" % "0.9.5",
"com.thoughtworks.binding" %%% "dom" % "11.0.1",
"com.thoughtworks.binding" %%% "route" % "11.0.1",
),
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full),
workbenchStartMode := Manual,
workbenchDefaultRootObject := Some(("js/target/scala-2.12/classes/index.html", "js/target/scala-2.12/")),
)
.jvmSettings(
name := "server",
libraryDependencies ++= Seq(
"org.scala-lang.modules" %% "scala-xml" % "1.1.0",
"com.typesafe.akka" %% "akka-http" % "10.1.1",
"com.typesafe.akka" %% "akka-stream" % "2.5.11",
"org.webjars.npm" % "materialize-css" % "1.0.0-beta",
"com.softwaremill.sttp" %% "akka-http-backend" % "1.1.12",
"com.github.pureconfig" %% "pureconfig" % "0.9.1",
"org.http4s" %% "http4s-blaze-client" % http4sVersion,
"org.http4s" %% "http4s-circe" % http4sVersion,
"org.slf4j" % "slf4j-simple" % "1.6.2",
"com.lihaoyi" %% "ujson-circe" % "0.6.5",
)
)
val hydraUIJS = root.js.enablePlugins(WorkbenchPlugin)
val hydraUIJVM = root.jvm
// .settings(
// (resources in Compile) += {
// (fastOptJS in(hydraUIJS, Compile)).value
// (artifactPath in(hydraUIJS, Compile, fastOptJS)).value
// },
// (resources in Compile) += {
// val js = (fastOptJS in(hydraUIJS, Compile)).value.data
// js.getParentFile / (js.getName + ".map")
// }
//)