-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sbt
40 lines (38 loc) · 1.47 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
ThisBuild / organization := "com.alexitc"
inThisBuild(List(
organization := "com.alexitc",
homepage := Some(url("https://github.com/wiringbits/sjs-material-ui-facade")),
licenses := List("MIT" -> url("http://www.opensource.org/licenses/mit-license.html")),
developers := List(
Developer(
"AlexITC",
"Alexis Hernandez",
"alexis22229@gmail.com",
url("https://wiringbits.net")
)
)
))
lazy val root = (project in file("."))
.configure(_.enablePlugins(ScalaJSPlugin, ScalaJSBundlerPlugin, ScalablyTypedConverterGenSourcePlugin))
.settings(
scalaVersion := "3.1.1",
crossScalaVersions ++= Seq("2.13.8", "3.1.1"),
name := "sjs-material-ui-facade",
Test / requireJsDomEnv := true,
stTypescriptVersion := "3.9.3",
stFlavour := Flavour.Slinky,
stMinimize := Selection.AllExcept("@material-ui/core", "@material-ui/styles", "@material-ui/icons"),
stOutputPackage := "com.alexitc.materialui.facade",
stReactEnableTreeShaking := Selection.All,
stUseScalaJsDom := true,
// disabled because it somehow triggers many warnings
scalaJSLinkerConfig ~= (_.withSourceMap(false)),
useYarn := true,
Compile / npmDependencies ++= Seq(
"@material-ui/core" -> "3.9.4", // note: version 4 is not supported yet
"@material-ui/styles" -> "3.0.0-alpha.10", // note: version 4 is not supported yet
"@material-ui/icons" -> "3.0.2",
),
// docs are huge and unnecessary
Compile / doc / sources := Nil,
)