-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
53 lines (50 loc) · 1.89 KB
/
Copy pathbuild.sbt
File metadata and controls
53 lines (50 loc) · 1.89 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
53
val _scalaVersion = "2.13.10"
val scalaJSDomVersion = "1.2.0"
val diodeVersion = "1.1.14"
val scalaReactVersion = "1.7.7"
val monocleVersion = "3.0.0-M6"
val minitestVersion = "2.9.6"
val reactVersion = "17.0.0"
val echartsVersion = "5.0.2"
ThisBuild / scalaVersion := _scalaVersion
ThisBuild / version := "0.1.0"
ThisBuild / organization := "app.paperhands"
ThisBuild / organizationName := "paperhands"
ThisBuild / semanticdbEnabled := true
ThisBuild / semanticdbVersion := scalafixSemanticdb.revision
lazy val root = (project in file("."))
.enablePlugins(ScalaJSBundlerPlugin)
.settings(
name := "paperhands-ui",
testFrameworks += new TestFramework("minitest.runner.Framework"),
scalacOptions ++= List(
"-Ymacro-annotations",
"-Yrangepos",
"-Wunused:imports"
),
libraryDependencies ++= Seq(
"org.scala-js" %%% "scalajs-dom" % scalaJSDomVersion,
"io.suzaku" %%% "diode" % diodeVersion,
"io.suzaku" %%% "diode-react" % diodeVersion,
"com.github.japgolly.scalajs-react" %%% "core" % scalaReactVersion,
"com.github.japgolly.scalajs-react" %%% "extra" % scalaReactVersion,
"io.monix" %%% "minitest" % minitestVersion % "test",
"io.monix" %%% "minitest-laws" % minitestVersion % "test",
"com.github.julien-truffaut" %%% "monocle-core" % monocleVersion,
"com.github.julien-truffaut" %%% "monocle-macro" % monocleVersion // Not required for Scala 3
),
useYarn := true,
Compile / npmDependencies ++= Seq(
"react" -> reactVersion,
"react-dom" -> reactVersion,
"echarts" -> echartsVersion,
"dateformat" -> "4.5.1"
),
scalaJSUseMainModuleInitializer := true,
Global / onChangedBuildSource := ReloadOnSourceChanges
)
addCommandAlias(
"organizeImports",
"scalafix dependency:OrganizeImports@com.github.liancheng:organize-imports:0.5.0"
)
addCommandAlias("cleanImports", "scalafix RemoveUnused")