Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make HugoPass Support Multiple Hugo Themes #4

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 12 additions & 22 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,35 +1,25 @@
import com.ossuminc.sbt.OssumIncPlugin
import com.ossuminc.sbt.helpers.RootProjectInfo.Keys.{
gitHubOrganization,
gitHubRepository
}
import com.ossuminc.sbt.helpers.RootProjectInfo.Keys.{gitHubOrganization, gitHubRepository}

Global / onChangedBuildSource := ReloadOnSourceChanges

enablePlugins(OssumIncPlugin)

lazy val `riddl-hugo` =
lazy val hugo =
Root(
"riddl-hugo",
"ossuminc",
"com.ossuminc.hugo",
"Ossum, Inc.",
startYr = 2024
).configure(With.noPublishing, With.git, With.dynver)
.aggregate(diagrams, hugo)

lazy val hugo: Project = Module("hugo", "riddl-hugo")
.configure(With.typical, With.coverage(50), With.publishing, With.scalafmt)
.settings(
description := "The hugo command turns a RIDDL AST into source input for hugo static site generator",
Compile / unmanagedResourceDirectories += {
baseDirectory.value / "resources"
},
Test / parallelExecution := false,
libraryDependencies ++= Deps.pureconfig ++ Deps.riddl
)
.dependsOn(diagrams)

lazy val diagrams = Module("diagrams", "riddl-hugo-diagrams")
.configure(With.typical, With.coverage(90.0), With.publishing)
.settings(libraryDependencies ++= Deps.riddl)
.configure(With.typical, With.coverage(50), With.publishing, With.scalafmt)
.settings(
scalaVersion := "3.4.1",
description := "The hugo command turns a RIDDL AST into source input for hugo static site generator",
Compile / unmanagedResourceDirectories += {
baseDirectory.value / "resources"
},
Test / parallelExecution := false,
libraryDependencies ++= Deps.pureconfig ++ Deps.riddl
)
Loading
Loading