Skip to content

Commit 2989d41

Browse files
author
reidspencer
committed
Simpler laminext support
1 parent d302fe1 commit 2989d41

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

src/main/scala/com/ossuminc/sbt/OssumIncPlugin.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,11 @@ object OssumIncPlugin extends AutoPlugin {
9090
version: String = "17.2.0",
9191
domVersion: String = "2.8.0",
9292
waypointVersion: Option[String] = Some("9.0.0"),
93-
laminextVersion: Option[Seq[(String, String)]] = None
93+
laminextVersion: Option[String] = None,
94+
laminextModules: Seq[String] = Seq.empty
9495
)(project: Project): Project =
95-
helpers.Laminar.configure(version, domVersion, waypointVersion, laminextVersion)(project)
96+
helpers.Laminar.configure(version, domVersion, waypointVersion, laminextVersion,
97+
laminextModules)(project)
9698

9799
/** Configure this project for generating mkdocs */
98100
def mkdocs()(project: Project): Project =

src/main/scala/com/ossuminc/sbt/helpers/Laminar.scala

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,15 @@ object Laminar extends AutoPluginHelper {
1212
version: String = "17.2.0",
1313
dom_version: String = "2.8.0",
1414
waypoint_version: Option[String] = Some("9.0.0"),
15-
laminext_version: Option[Seq[(String, String)]] = None
15+
laminextVersion: Option[String] = None,
16+
laminextModules: Seq[String] = Seq.empty
1617
)(project: Project): Project =
1718
project.settings(
1819
libraryDependencies ++= {
1920
val waypoint: Seq[ModuleID] =
2021
waypoint_version.map(v => "com.raquo" %%% "waypoint" % v).toSeq
2122
val laminext: Seq[ModuleID] = {
22-
val modver: Seq[(String, String)] =
23-
laminext_version.getOrElse(Seq.empty[(String, String)])
24-
modver.map { case (module, version) =>
23+
laminextModules.map { module =>
2524
module match {
2625
case "core" => "dev.laminext" %%% "core" % version
2726
case "fetch" => "dev.laminext" %%% "fetch" % version

0 commit comments

Comments
 (0)