-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
73 lines (49 loc) · 1.99 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name := "BSVis"
version := "0.1"
scalaVersion := "2.13.7"
/**********************************************************************************************************************/
enablePlugins(ScalaJSPlugin)
enablePlugins(ScalaJSBundlerPlugin)
//enablePlugins(ScalablyTypedConverterPlugin)
addCompilerPlugin("com.olegpy" %% "better-monadic-for" % "0.3.1")
/**********************************************************************************************************************/
scalaJSUseMainModuleInitializer := true
//stFlavour := Flavour.Japgolly
useYarn := true
//stIgnore ++= List("react", "react-dom")
val ScalaJsReactVer = "2.0.0"
val circeVersion = "0.14.1"
libraryDependencies ++= Seq(
"org.scala-js" %%% "scalajs-dom" % "2.0.0",
"org.typelevel" %%% "cats-core" % "2.6.1",
"org.typelevel" %%% "cats-effect" % "3.2.9",
"com.github.japgolly.scalajs-react" %%% "callback" % ScalaJsReactVer,
"com.github.japgolly.scalajs-react" %%% "callback-ext-cats" % ScalaJsReactVer,
"com.github.japgolly.scalajs-react" %%% "callback-ext-cats_effect" % ScalaJsReactVer,
// Optional extensions for Cats / Cats Effect
// (Note: these need to come before "core")
"com.github.japgolly.scalajs-react" %%% "core-ext-cats" % ScalaJsReactVer,
"com.github.japgolly.scalajs-react" %%% "core-ext-cats_effect" % ScalaJsReactVer,
// Mandatory
"com.github.japgolly.scalajs-react" %%% "core-bundle-cats_effect" % ScalaJsReactVer,
)
val sttpVer = "3.3.18"
libraryDependencies ++= Seq(
"com.softwaremill.sttp.client3" %%% "core",
"com.softwaremill.sttp.client3" %%% "cats" ,
).map(_ % sttpVer)
libraryDependencies ++= Seq(
"io.circe" %%% "circe-core",
"io.circe" %%% "circe-generic",
"io.circe" %%% "circe-parser"
).map(_ % circeVersion)
scalacOptions ++= Seq(
"-P:bm4:no-filtering:y",
"-P:bm4:no-map-id:y",
"-P:bm4:no-tupling:y",
"-P:bm4:implicit-patterns:y",
)
Compile / npmDependencies ++= Seq(
"react" -> "17.0.2",
"react-dom" -> "17.0.2"
)