-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
52 lines (48 loc) · 1.83 KB
/
build.sbt
File metadata and controls
52 lines (48 loc) · 1.83 KB
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
import org.scalajs.linker.interface.ModuleSplitStyle
lazy val commonSettings = List(
scalaVersion := "3.7.2",
scalacOptions ++= List(
"-feature",
"-deprecation"
),
)
val circeVersion = "0.14.15"
val http4sVersion = "0.23.32"
lazy val web = project.in(file("web"))
.enablePlugins(ScalaJSPlugin)
.settings(
commonSettings,
scalaJSUseMainModuleInitializer := true,
scalaJSLinkerConfig ~= {
_.withModuleKind(ModuleKind.ESModule)
.withModuleSplitStyle(ModuleSplitStyle.SmallModulesFor(List("aphints")))
},
libraryDependencies ++= List(
"org.scala-js" %%% "scalajs-dom" % "2.8.1",
"com.raquo" %%% "laminar" % "17.2.1",
"io.github.kitlangton" %%% "animus" % "0.6.8",
"io.circe" %%% "circe-core" % circeVersion,
"io.circe" %%% "circe-generic" % circeVersion,
"io.circe" %%% "circe-parser" % circeVersion,
"org.typelevel" %%% "case-insensitive" % "1.5.0"
)
)
lazy val server = project.in(file("server"))
.settings(
commonSettings,
libraryDependencies ++= List(
"org.http4s" %% "http4s-ember-client" % http4sVersion,
"org.http4s" %% "http4s-ember-server" % http4sVersion,
"org.http4s" %% "http4s-dsl" % http4sVersion,
"org.http4s" %% "http4s-circe" % http4sVersion,
"io.circe" %% "circe-core" % circeVersion,
"io.circe" %% "circe-generic" % circeVersion,
"io.circe" %% "circe-parser" % circeVersion,
"org.tpolecat" %% "skunk-core" % "0.6.4"
),
assembly / assemblyMergeStrategy := {
case "module-info.class" => MergeStrategy.discard
case x => (assembly / assemblyMergeStrategy).value.apply(x)
},
Compile / run / fork := true
)