-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
36 lines (32 loc) · 1.02 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
name := "http4s4tw"
val http4sVersion = "0.23.23"
lazy val commonSettings = Seq(
version := "0.1",
scalaVersion := "3.3.1",
scalacOptions ++= Seq("-deprecation", "-feature"),
)
lazy val server = (project in file("server")).settings(commonSettings).settings(
name := "server",
libraryDependencies ++= Seq(
"org.http4s" %% "http4s-dsl" % http4sVersion,
"org.http4s" %% "http4s-ember-server" % http4sVersion,
)
)
lazy val client = (project in file("client")).settings(commonSettings).settings(
name := "client",
scalaJSUseMainModuleInitializer := true,
Compile / fastOptJS / scalaJSLinkerConfig ~= {
_.withSourceMap(false)
},
libraryDependencies ++= Seq(
"org.typelevel" %% "cats-effect" % "3.5.2",
"org.http4s" %%% "http4s-dom" % "0.2.10",
"org.http4s" %%% "http4s-client" % http4sVersion,
"org.http4s" %%% "http4s-circe" % http4sVersion,
"io.circe" %%% "circe-generic" % "0.14.6",
"com.armanbilge" %%% "calico" % "0.2.1",
)
).enablePlugins(
ScalaJSPlugin,
ScalaJSBundlerPlugin
)