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)
56
67inThisBuild(
78 List (
9+ organization := Settings .organization,
810 homepage := Some (url(" https://github.com/kinoplan/scalajs-react-material-ui" )),
911 licenses := Seq (" MIT" -> url(" http://opensource.org/licenses/MIT" )),
1012 developers := List (
@@ -37,9 +39,7 @@ lazy val core = (project in file("core")).dependsOn(bridge)
3739 (sourceManaged in Compile ).value / " io" / " kinoplan" / " scalajs" / " react" / " material" / " ui" / " core" / " colors" ,
3840 (npmInstallDependencies in Compile ).value
3941 ),
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
4343).enablePlugins(ScalaJSBundlerPlugin )
4444
4545lazy val muiIconsGenerator = taskKey[Seq [File ]](" mui-icons-generator" )
@@ -55,9 +55,7 @@ lazy val icons = (project in file("icons")).dependsOn(bridge)
5555 (sourceManaged in Compile ).value / " io" / " kinoplan" / " scalajs" / " react" / " material" / " ui" / " icons" ,
5656 (npmInstallDependencies in Compile ).value
5757 ),
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
6159).enablePlugins(ScalaJSBundlerPlugin )
6260
6361lazy val lab = (project in file(" lab" )).dependsOn(bridge)
@@ -66,9 +64,7 @@ lazy val lab = (project in file("lab")).dependsOn(bridge)
6664 scalaJSUseMainModuleInitializer := false ,
6765 npmDependencies in Compile ++= Settings .npmDependenciesLab.value,
6866 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
7268).enablePlugins(ScalaJSBundlerPlugin )
7369
7470lazy 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
9793).enablePlugins(ScalaJSBundlerPlugin , BridgeGeneratorPlugin )
9894
9995lazy val commonSettings = Seq (
100- version := Settings .version,
10196 crossScalaVersions := Seq (" 2.12.11" , " 2.13.3" ),
10297 scalaVersion := crossScalaVersions.value.last,
103- organization := Settings .organization,
10498 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 ,
10899 webpackBundlingMode := BundlingMode .LibraryOnly (),
109100 useYarn := true ,
110101 version in webpack := Settings .versions.bundler.webpack,
0 commit comments