Skip to content

Commit 88a3db0

Browse files
author
reidspencer
committed
Initial functionality #1
* Finish build settings * Add in ScalaFmt * Make 2 themes we plan to support * Integrate theme selection into HugoPass
1 parent 95f3c45 commit 88a3db0

File tree

3 files changed

+42
-18
lines changed

3 files changed

+42
-18
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ hs_err_pid*
1010
**/target/
1111
/.idea/
1212
**/.DS_Store
13+
.scalafmt.conf.etag

.scalafmt.conf

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
version=3.7.17
2+
preset = default
3+
maxColumn = 120
4+
docstrings.style = SpaceAsterisk
5+
runner.dialect = scala3
6+
indent.main = 2
7+
8+
optIn {
9+
breakChainOnFirstMethodDot = true
10+
annotationNewlines = false
11+
configStyleArguments = true
12+
}
13+
14+
align {
15+
openParenDefnSite = false
16+
}
17+
18+
indent.ctorSite = 2
19+
indent.defnSite = 2
20+
21+
// Configure which source files should be formatted in this project.
22+
23+
project {
24+
git = true
25+
includeFilters = [
26+
".*\\.scala$"
27+
".*\\.sbt$"
28+
]
29+
excludeFilters = []
30+
}
31+

build.sbt

+10-18
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import com.ossuminc.sbt.OssumIncPlugin
2-
import com.ossuminc.sbt.helpers.Publishing
32
import com.ossuminc.sbt.helpers.RootProjectInfo.Keys.{
43
gitHubOrganization,
54
gitHubRepository
@@ -9,25 +8,18 @@ Global / onChangedBuildSource := ReloadOnSourceChanges
98

109
enablePlugins(OssumIncPlugin)
1110

12-
lazy val devs = List(
13-
Developer(
14-
"reid-spencer",
15-
"Reid Spencer",
16-
17-
url("https://github.com/reid-spencer")
18-
)
19-
)
20-
lazy val root =
21-
Root("root", "hugo", startYr = 2024, devs = devs)
22-
.configure(Publishing.configure, With.git, With.dynver)
23-
.settings(
24-
ThisBuild / gitHubRepository := "riddl-hugo",
25-
ThisBuild / gitHubOrganization := "ossuminc",
26-
)
11+
lazy val `riddl-hugo` =
12+
Root(
13+
"riddl-hugo",
14+
"ossuminc",
15+
"com.ossuminc.hugo",
16+
"Ossum, Inc.",
17+
startYr = 2024
18+
).configure(With.noPublishing, With.git, With.dynver)
2719
.aggregate(diagrams, hugo)
2820

2921
lazy val hugo: Project = Module("hugo", "riddl-hugo")
30-
.configure(With.typical, With.coverage(50))
22+
.configure(With.typical, With.coverage(50), With.publishing, With.scalafmt)
3123
.settings(
3224
description := "The hugo command turns a RIDDL AST into source input for hugo static site generator",
3325
Compile / unmanagedResourceDirectories += {
@@ -39,5 +31,5 @@ lazy val hugo: Project = Module("hugo", "riddl-hugo")
3931
.dependsOn(diagrams)
4032

4133
lazy val diagrams = Module("diagrams", "riddl-hugo-diagrams")
42-
.configure(With.typical, With.coverage(90.0))
34+
.configure(With.typical, With.coverage(90.0), With.publishing)
4335
.settings(libraryDependencies ++= Deps.riddl)

0 commit comments

Comments
 (0)