-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
59 lines (52 loc) · 1.44 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
ThisBuild / version := "0.1.0-SNAPSHOT"
ThisBuild / scalaVersion := "3.2.1"
val circeVersion = "0.14.3"
val circe = Seq(
"io.circe" %% "circe-core",
"io.circe" %% "circe-generic",
"io.circe" %% "circe-parser"
).map(_ % circeVersion)
lazy val commons = crossProject(JSPlatform, JVMPlatform)
.crossType(CrossType.Pure)
.in(file("commons"))
.settings(
name := "commons",
)
.jvmSettings(
libraryDependencies ++= circe
)
.jsSettings(
libraryDependencies ++= Seq(
"io.circe" %%% "circe-core" % circeVersion,
"io.circe" %%% "circe-generic" % circeVersion,
"io.circe" %%% "circe-parser" % circeVersion
)
)
lazy val frontend = (project in file("frontend"))
.enablePlugins(ScalaJSPlugin)
.settings(
name := "frontend",
scalacOptions ++= Seq(
"-Xmax-inlines:256"
),
scalaJSUseMainModuleInitializer := true,
scalaJSLinkerConfig ~= { _.withSourceMap(true) },
libraryDependencies ++= Seq(
"com.raquo" %%% "laminar" % "0.13.1"
),
)
.dependsOn(commons.js)
lazy val scrapper = (project in file("scrapper"))
.settings(
name := "scrapper",
scalacOptions ++= Seq(
"-Xmax-inlines:64"
),
libraryDependencies ++= Seq(
"dev.zio" %% "zio" % "2.0.5",
"com.softwaremill.sttp.client3" %% "core" % "3.8.6",
"com.softwaremill.sttp.client3" %% "zio" % "3.8.6",
"net.ruippeixotog" %% "scala-scraper" % "3.0.0",
)
)
.dependsOn(commons.jvm)