-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
41 lines (28 loc) · 1.61 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
enablePlugins(ScalaJSBundlerPlugin)
name := "slinky-diode-todomvc"
scalaVersion := "2.13.1"
npmDependencies in Compile += "react" -> "16.8.6"
npmDependencies in Compile += "react-dom" -> "16.8.6"
npmDependencies in Compile += "react-proxy" -> "1.1.8"
npmDevDependencies in Compile += "file-loader" -> "3.0.1"
npmDevDependencies in Compile += "style-loader" -> "0.23.1"
npmDevDependencies in Compile += "css-loader" -> "2.1.1"
npmDevDependencies in Compile += "html-webpack-plugin" -> "3.2.0"
npmDevDependencies in Compile += "copy-webpack-plugin" -> "5.0.2"
npmDevDependencies in Compile += "webpack-merge" -> "4.2.1"
libraryDependencies += "me.shadaj" %%% "slinky-web" % "0.6.4+2-3c8aef65"
libraryDependencies += "me.shadaj" %%% "slinky-hot" % "0.6.4+2-3c8aef65"
libraryDependencies += "io.suzaku" %%% "diode" % "1.1.8"
libraryDependencies += "org.scalatest" %%% "scalatest" % "3.1.1" % Test
scalacOptions += "-Ymacro-annotations"
version in webpack := "4.41.6"
version in startWebpackDevServer:= "3.10.3"
webpackResources := baseDirectory.value / "webpack" * "*"
webpackConfigFile in fastOptJS := Some(baseDirectory.value / "webpack" / "webpack-fastopt.config.js")
webpackConfigFile in fullOptJS := Some(baseDirectory.value / "webpack" / "webpack-opt.config.js")
webpackConfigFile in Test := Some(baseDirectory.value / "webpack" / "webpack-core.config.js")
webpackDevServerExtraArgs in fastOptJS := Seq("--inline", "--hot")
webpackBundlingMode in fastOptJS := BundlingMode.LibraryOnly()
requireJsDomEnv in Test := true
addCommandAlias("dev", ";fastOptJS::startWebpackDevServer;~fastOptJS")
addCommandAlias("build", "fullOptJS::webpack")