-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
62 lines (52 loc) · 2.15 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
name := "autongs"
(ThisBuild / version) := "0.1.17"
(ThisBuild / scalaVersion) := "2.13.6"
(ThisBuild / scalafmtOnCompile) := true
(ThisBuild / scalacOptions) ++= Seq("-deprecation")
val sjsReact = "2.0.0-RC3"
val react = "17.0.2"
//val react = "16.13.1"
val mui = "4.12.3"
//val mui = "3.9.0"
val zioVersion = "1.0.11"
lazy val `core-ext-zio` = project
.settings(
libraryDependencies ++= Seq(
"dev.zio" %%% "zio-prelude" % "1.0.0-RC6" exclude ("io.github.cquiroz", "scala-java-time-tzdb_sjs1_2.13"),
// "dev.zio" %%% "zio" % "1.0.11" exclude ("io.github.cquiroz", "scala-java-time-tzdb_sjs1_2.13"),
"io.github.cquiroz" %%% "scala-java-time" % "2.2.0",
// "io.github.cquiroz" %%% "scala-java-time-tzdb" % "2.2.0",
"com.github.japgolly.scalajs-react" %%% "core-generic" % sjsReact,
"com.github.japgolly.scalajs-react" %%% "util-dummy-defaults" % sjsReact % Provided,
)
)
.enablePlugins(ScalaJSPlugin)
lazy val autongs = project
.in(file("."))
.dependsOn(`core-ext-zio`)
.settings(
scalaJSUseMainModuleInitializer := true,
libraryDependencies ++= Seq(
// "com.github.japgolly.scalajs-react" %%% "core-bundle-cats_effect" % sjsReact,
// "com.github.japgolly.scalajs-react" %%% "core" % sjsReact,
"io.kinoplan" %%% "scalajs-react-material-ui-core" % "0.2.1+98-f4223ad2-SNAPSHOT"
),
libraryDependencies ++= Seq(
"dev.zio" %%% "zio-test" % zioVersion,
"dev.zio" %%% "zio-test-sbt" % zioVersion,
).map(_ % Test),
testFrameworks += new TestFramework("zio.test.sbt.ZTestFramework"),
(Compile / npmDependencies) ++= Seq(
"@material-ui/core" -> mui,
"react" -> react,
"react-dom" -> react,
),
webpackConfigFile := Some(baseDirectory.value / "webpack.config.js"),
webpackEmitSourceMaps := false,
// (fastOptJS / scalaJSLinkerConfig) ~= (_.withOptimizer(false)),
)
.enablePlugins(ScalaJSBundlerPlugin)
val buildOpt = taskKey[Seq[File]]("Builds fullOpt version")
buildOpt := Bundle.createOptTask.value
val buildFast = taskKey[Seq[File]]("Builds fastOpt version")
buildFast := Bundle.createFastTask.value