This repository has been archived by the owner on Nov 24, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.sbt
54 lines (34 loc) · 1.62 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
// Get Maven releases faster
resolvers ++= Resolver.sonatypeOssRepos("public")
enablePlugins(ScalaJSPlugin)
enablePlugins(ScalaJSBundlerPlugin) // only needed for your JS dependencies, not for Laminar
name := "Laminar Examples"
version := "0.1-SNAPSHOT"
normalizedName := "laminarexamples"
organization := "com.raquo"
scalaVersion := Versions.Scala_3
libraryDependencies ++= Seq(
"com.raquo" %%% "laminar" % Versions.Laminar,
"com.raquo" %%% "waypoint" % Versions.Waypoint,
"com.github.plokhotnyuk.jsoniter-scala" %%% "jsoniter-scala-core" % Versions.JsoniterScala,
// #TODO[Build] Using "provided" for macros instead of "compiler-internal" because IntelliJ does not understand the latter. Not sure if there's any difference.
"com.github.plokhotnyuk.jsoniter-scala" %% "jsoniter-scala-macros" % Versions.JsoniterScala % "provided"
)
(installJsdom / version) := Versions.JsDom
(webpack / version) := Versions.Webpack
(startWebpackDevServer / version) := Versions.WebpackDevServer
scalacOptions ++= Seq(
"-deprecation",
"-feature",
"-language:higherKinds",
"-language:implicitConversions",
"-language:existentials",
)
Compile / npmDependencies += "@material/mwc-button" -> Versions.MaterialWebComponents
Compile / npmDependencies += "@material/mwc-linear-progress" -> Versions.MaterialWebComponents
Compile / npmDependencies += "@material/mwc-slider" -> Versions.MaterialWebComponents
Compile / fastOptJS / scalaJSLinkerConfig ~= { _.withSourceMap(false) }
Compile / fullOptJS / scalaJSLinkerConfig ~= { _.withSourceMap(true) }
scalaJSUseMainModuleInitializer := true
(Test / requireJsDomEnv) := true
useYarn := true