-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
72 lines (56 loc) · 2.1 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 sbtcrossproject.CrossPlugin.autoImport.crossProject
name := "scalajs-react-material-ui-extra root"
version in ThisBuild := "0.0.1-SNAPSHOT"
organization in ThisBuild := "org.rebeam"
scalaVersion in ThisBuild := "2.12.6"
// crossScalaVersions in ThisBuild := Seq("2.11.12", "2.12.6")
scalacOptions in ThisBuild ++= Seq(
"-feature",
"-deprecation",
"-encoding", "UTF-8",
"-unchecked",
"-Xfatal-warnings",
"-Xlint",
"-Xcheckinit",
"-Xlint:-unused",
"-Ywarn-unused:imports",
"-Ypartial-unification",
"-language:existentials",
"-language:higherKinds",
"-Yno-adapted-args",
// "-Ywarn-dead-code", //TODO restore for JVM and shared only
// "-Ywarn-numeric-widen",
"-Ywarn-value-discard",
"-Xfuture"
//"-Yno-predef" ?
)
lazy val scalajsReactVersion = "1.2.3"
lazy val root = project.in(file(".")).
aggregate(scalajsReactMaterialUIExtraJS, scalajsReactMaterialUIExtraJVM).
settings(
publish := {},
publishLocal := {}
)
lazy val scalajsReactMaterialUIExtra = crossProject(JSPlatform, JVMPlatform).in(file(".")).
//Settings for all projects
settings(
name := "scalajs-react-material-ui-extra",
libraryDependencies ++= Seq(
),
).jvmSettings(
).jsSettings(
//Scalajs dependencies that are used on the client only
resolvers += Resolver.jcenterRepo,
libraryDependencies ++= Seq(
"com.github.japgolly.scalajs-react" %%% "core" % scalajsReactVersion,
"com.github.japgolly.scalajs-react" %%% "extra" % scalajsReactVersion,
"org.rebeam" %%% "scalajs-react-material-ui" % "0.0.1-SNAPSHOT",
"org.rebeam" %%% "scalajs-react-material-icons" % "0.0.1-SNAPSHOT",
"org.rebeam" %%% "scalajs-react-downshift" % "0.0.1-SNAPSHOT"
),
//Produce a module, so we can use @JSImport.
// scalaJSModuleKind := ModuleKind.CommonJSModule//,
scalaJSLinkerConfig ~= { _.withModuleKind(ModuleKind.CommonJSModule) }
)
lazy val scalajsReactMaterialUIExtraJVM = scalajsReactMaterialUIExtra.jvm
lazy val scalajsReactMaterialUIExtraJS = scalajsReactMaterialUIExtra.js