1
- lazy val root = if (Settings .isDemoEnabled)
2
- project.in(file(" ." )).aggregate(core, icons, lab, bridge, demo).configure(Settings .rootProject)
3
- else
4
- project.in(file(" ." )).aggregate(core, icons, lab, bridge).configure(Settings .rootProject)
1
+ lazy val root =
2
+ if (Settings .isDemoEnabled)
3
+ project.in(file(" ." )).aggregate(core, icons, lab, bridge, demo).configure(Settings .rootProject)
4
+ else
5
+ project.in(file(" ." )).aggregate(core, icons, lab, bridge).configure(Settings .rootProject)
5
6
6
7
inThisBuild(
7
8
List (
9
+ organization := Settings .organization,
8
10
homepage := Some (url(" https://github.com/kinoplan/scalajs-react-material-ui" )),
9
11
licenses := Seq (" MIT" -> url(" http://opensource.org/licenses/MIT" )),
10
12
developers := List (
@@ -37,9 +39,7 @@ lazy val core = (project in file("core")).dependsOn(bridge)
37
39
(sourceManaged in Compile ).value / " io" / " kinoplan" / " scalajs" / " react" / " material" / " ui" / " core" / " colors" ,
38
40
(npmInstallDependencies in Compile ).value
39
41
),
40
- sourceGenerators in Compile += muiColorsGenerator.taskValue,
41
- sources in(Compile , doc) := Seq .empty,
42
- publishArtifact in(Compile , packageDoc) := false ,
42
+ sourceGenerators in Compile += muiColorsGenerator.taskValue
43
43
).enablePlugins(ScalaJSBundlerPlugin )
44
44
45
45
lazy val muiIconsGenerator = taskKey[Seq [File ]](" mui-icons-generator" )
@@ -55,9 +55,7 @@ lazy val icons = (project in file("icons")).dependsOn(bridge)
55
55
(sourceManaged in Compile ).value / " io" / " kinoplan" / " scalajs" / " react" / " material" / " ui" / " icons" ,
56
56
(npmInstallDependencies in Compile ).value
57
57
),
58
- sourceGenerators in Compile += muiIconsGenerator.taskValue,
59
- sources in(Compile , doc) := Seq .empty,
60
- publishArtifact in(Compile , packageDoc) := false ,
58
+ sourceGenerators in Compile += muiIconsGenerator.taskValue
61
59
).enablePlugins(ScalaJSBundlerPlugin )
62
60
63
61
lazy val lab = (project in file(" lab" )).dependsOn(bridge)
@@ -66,9 +64,7 @@ lazy val lab = (project in file("lab")).dependsOn(bridge)
66
64
scalaJSUseMainModuleInitializer := false ,
67
65
npmDependencies in Compile ++= Settings .npmDependenciesLab.value,
68
66
npmResolutions in Compile ++= (npmDependencies in Compile ).value.toMap,
69
- libraryDependencies ++= Settings .scalajsDependenciesLib.value,
70
- sources in(Compile , doc) := Seq .empty,
71
- publishArtifact in(Compile , packageDoc) := false ,
67
+ libraryDependencies ++= Settings .scalajsDependenciesLib.value
72
68
).enablePlugins(ScalaJSBundlerPlugin )
73
69
74
70
lazy val demo = (project in file(" demo" )).dependsOn(core, lab, bridge)
@@ -97,14 +93,9 @@ lazy val bridge = (project in file("utils/bridge")).settings(commonSettings).set
97
93
).enablePlugins(ScalaJSBundlerPlugin , BridgeGeneratorPlugin )
98
94
99
95
lazy val commonSettings = Seq (
100
- version := Settings .version,
101
96
crossScalaVersions := Seq (" 2.12.11" , " 2.13.3" ),
102
97
scalaVersion := crossScalaVersions.value.last,
103
- organization := Settings .organization,
104
98
description := Settings .description,
105
- homepage := Some (url(" https://github.com/kinoplan/scalajs-react-material-ui" )),
106
- licenses := Seq (" MIT" -> url(" http://opensource.org/licenses/MIT" )),
107
- publishArtifact in Test := false ,
108
99
webpackBundlingMode := BundlingMode .LibraryOnly (),
109
100
useYarn := true ,
110
101
version in webpack := Settings .versions.bundler.webpack,
0 commit comments