-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
43 lines (39 loc) · 1.14 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
name := "scalajs-bundler-test"
version := "0.1"
fork := true
val http4sVersion = "0.23.18"
val reactVersion = "18.2.0"
val sharedSettings = Seq(
scalaVersion := "2.13.10",
scalacOptions += "-language:higherKinds",
scalacOptions += "-Ymacro-annotations"
)
lazy val server =
crossProject(JVMPlatform)
.enablePlugins(WebScalaJSBundlerPlugin)
.settings(
scalaJSProjects := Seq(client.js),
Assets / pipelineStages := Seq(scalaJSPipeline),
sharedSettings,
libraryDependencies ++= Seq(
"org.http4s" %% "http4s-dsl" % http4sVersion,
"org.http4s" %% "http4s-ember-server" % http4sVersion
)
)
lazy val client =
crossProject(JSPlatform)
.enablePlugins(ScalaJSBundlerPlugin)
.settings(
scalaJSUseMainModuleInitializer := true,
webpackBundlingMode := BundlingMode.LibraryOnly(),
sharedSettings,
libraryDependencies ++= Seq(
"com.github.japgolly.scalajs-react" %%% "core" % "2.1.1"
),
useYarn := true,
Compile / npmDependencies ++= Seq(
"react" -> reactVersion,
"react-dom" -> reactVersion,
"react-select" -> "5.7.0"
)
)