-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sbt
76 lines (63 loc) · 1.9 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
65
66
67
68
69
70
71
72
73
74
75
76
val ScalaVer = "2.12.1"
val ScalaJSDom = "0.9.1"
val ScalaTags = "0.6.3"
val ApacheIO = "2.5"
val ApacheCodec = "1.10"
val Cats = "0.9.0"
val KindProjector = "0.9.3"
val Circe = "0.7.0"
val jsPath = file("assets") / "js"
scalaVersion in ThisBuild := ScalaVer
lazy val commonSettings = Seq(
name := "functionalstreamer"
, version := "0.1.0"
, scalaVersion := ScalaVer
, libraryDependencies ++= Seq(
"com.lihaoyi" %%% "scalatags" % ScalaTags
, "io.circe" %%% "circe-core" % Circe
, "io.circe" %%% "circe-generic" % Circe
, "io.circe" %%% "circe-parser" % Circe
, "org.typelevel" %%% "cats-core" % Cats
, "com.lihaoyi" %%% "scalatags" % ScalaTags
)
, addCompilerPlugin("org.spire-math" %% "kind-projector" % KindProjector)
, scalacOptions ++= Seq(
"-deprecation",
"-encoding", "UTF-8",
"-feature",
"-language:existentials",
"-language:higherKinds",
"-language:implicitConversions",
"-language:experimental.macros",
"-unchecked",
"-Xlint",
"-Ywarn-dead-code",
"-Xfuture",
"-Ypartial-unification",
"-Ywarn-unused-import")
)
lazy val root = project.in(file(".")).
aggregate(js, jvm)
.settings(
publish := {},
publishLocal := {}
)
lazy val functionalstreamer = crossProject.in(file("."))
.settings(commonSettings)
lazy val jvm = functionalstreamer.jvm
.settings(
libraryDependencies ++= Seq(
"commons-io" % "commons-io" % ApacheIO
, "commons-codec" % "commons-codec" % ApacheCodec
)
, baseDirectory in reStart := new File(".")
, reStart <<= reStart.dependsOn(fastOptJS in (js, Compile))
)
lazy val js = functionalstreamer.js
.settings(
scalaJSUseMainModuleInitializer := true
, libraryDependencies ++= Seq(
"org.scala-js" %%% "scalajs-dom" % ScalaJSDom
)
, artifactPath in (Compile, fastOptJS) := jsPath / "application.js"
)