Skip to content

Commit

Permalink
Enhance "build" command
Browse files Browse the repository at this point in the history
- Clean before compiling

- Check dependency updates towards the end of the build, where the developer
is more likely to see the output.

- Check dependency updates for plugins

Also reload build on changes, which is useful
  • Loading branch information
noelwelsh committed Nov 30, 2023
1 parent 2ec6968 commit 11cc98f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ import laika.config.LinkConfig
import laika.config.ApiLinks
import laika.theme.Theme

ThisBuild / tlBaseVersion := "0.20" // your current series x.y
ThisBuild / tlBaseVersion := "0.21" // your current series x.y

Global / onChangedBuildSource := ReloadOnSourceChanges

ThisBuild / organization := "org.creativescala"
ThisBuild / organizationName := "Creative Scala"
Expand All @@ -43,14 +45,16 @@ ThisBuild / tlSitePublishBranch := Some("main")

// Run this (build) to do everything involved in building the project
commands += Command.command("build") { state =>
"dependencyUpdates" ::
"clean" ::
"compile" ::
"test" ::
"golden/test" ::
"scalafixAll" ::
"scalafmtAll" ::
"headerCreateAll" ::
"githubWorkflowGenerate" ::
"dependencyUpdates" ::
"reload plugins; dependencyUpdates; reload return" ::
"docs / tlSite" ::
state
}
Expand Down

0 comments on commit 11cc98f

Please sign in to comment.