-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
31 lines (29 loc) · 844 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
inThisBuild(
List(
organization := "io.frontroute",
version := "0.13.1",
scalaVersion := DependencyVersions.scala
)
)
lazy val frontend =
crossProject(JSPlatform)
.crossType(CrossType.Pure)
.in(file("modules/frontend"))
.jsSettings(
name := "frontend",
scalaJSLinkerConfig ~= { _.withModuleKind(ModuleKind.CommonJSModule) },
scalaJSLinkerConfig ~= { _.withESFeatures(_.withESVersion(org.scalajs.linker.interface.ESVersion.ES2015)) },
scalaJSUseMainModuleInitializer := true,
libraryDependencies ++= Seq.concat(
Dependencies.scribe.value,
Dependencies.laminar.value,
Dependencies.frontroute.value
),
ScalaOptions.fixOptions
)
lazy val root = project
.in(file("."))
.settings(
name := "frontroute-example"
)
.aggregate(frontend.js)