-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
29 lines (23 loc) · 982 Bytes
/
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
import scala.sys.process.Process
externalNpm := {
Process("npm", baseDirectory.value).!
baseDirectory.value
}
lazy val root = project
.in(file("."))
.enablePlugins(ScalaJSPlugin, ScalablyTypedConverterExternalNpmPlugin)
.settings(
name := "ScalaReactNative",
version := "1.0",
scalacOptions += "-Ymacro-annotations",
scalaVersion := "2.13.15",
stIgnore ++= List("css-type", "react-proxy"),
stMinimize := Selection.All,
stFlavour := Flavour.SlinkyNative,
libraryDependencies += "me.shadaj" %%% "slinky-native" % "0.7.4+17-f74988fd",
libraryDependencies += "me.shadaj" %%% "slinky-hot" % "0.7.4+17-f74988fd",
libraryDependencies += "io.github.cquiroz" %%% "scala-java-time" % "2.5.0",
libraryDependencies += "io.github.cquiroz" %%% "scala-java-time-tzdb" % "2.5.0",
libraryDependencies += "org.scala-js" %%% "scala-js-macrotask-executor" % "1.1.1",
scalaJSLinkerConfig ~= { _.withModuleKind(ModuleKind.CommonJSModule) }
)