-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
71 lines (57 loc) · 2.25 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
63
64
65
66
67
68
69
70
71
import sbt.Keys.{dependencyOverrides, libraryDependencies}
ThisBuild / organization := "oss.ggiussi"
ThisBuild / version := "0.1.0-SNAPSHOT"
ThisBuild / scalaVersion := "2.12.6"
lazy val commonSettings = Seq(
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.5" % Test
)
lazy val cappio = project.in(file("."))
.aggregate(core, ui)
lazy val core = (project in file("core"))
.settings(
commonSettings,
libraryDependencies ++= Seq(
"org.scalaz" %% "scalaz-core" % "7.2.27"
)
// other settings
) enablePlugins (ScalaJSPlugin)
val react = "1.2.3" // TODO move inside ui
lazy val ui = (project in file("ui"))
.settings(
scalaJSUseMainModuleInitializer := true,
scalaJSUseMainModuleInitializer in Test := false,
mainClass in Compile := Some("oss.ggiussi.cappio.ui.app.App"),
// other settings
libraryDependencies ++= Seq(
"com.github.japgolly.scalajs-react" %%% "core" % react,
"com.github.japgolly.scalajs-react" %%% "extra" % react,
"com.github.japgolly.scalajs-react" %%% "test" % react % Test
),
jsDependencies ++= Seq(
"org.webjars.npm" % "react" % "16.2.0"
/ "umd/react.development.js"
minified "umd/react.production.min.js"
commonJSName "React",
"org.webjars.npm" % "react-dom" % "16.2.0"
/ "umd/react-dom.development.js"
minified "umd/react-dom.production.min.js"
dependsOn "umd/react.development.js"
commonJSName "ReactDOM",
"org.webjars.npm" % "react-dom" % "16.2.0"
/ "umd/react-dom-server.browser.development.js"
minified "umd/react-dom-server.browser.production.min.js"
dependsOn "umd/react-dom.development.js"
commonJSName "ReactDOMServer",
"org.webjars.npm" % "react-dom" % "16.2.0" % Test
/ "umd/react-dom-test-utils.development.js"
minified "umd/react-dom-test-utils.production.min.js"
dependsOn "umd/react-dom.development.js"
commonJSName "ReactTestUtils"
),
//jsDependencies += RuntimeDOM % "test",
jsEnv := new org.scalajs.jsenv.jsdomnodejs.JSDOMNodeJSEnv,
//skip in packageJSDependencies := false,
dependencyOverrides += "org.webjars.npm" % "js-tokens" % "3.0.2",
)
.enablePlugins(ScalaJSPlugin)
.dependsOn(core)