-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add support for YAML: configuration can now also be in bleep.yaml * fail-fast: false * snakeyaml 1.30 * GraalVM snapshot * debug * quite untested, but switch to yaml only: concerns the following files: $PROJECT/bleep.yaml (build file) $PROJECT/.bleep/bsp/project-selection.yaml (used to only mount some subset of projects in IDE) $HOME/.config/bleep/config.yaml (user-level config) * sorting, deduplication * fmt * fork and vendor circe-yaml, update to the new snakeyaml library called snakeyaml-engine. * meh formatting * dep * put circe-yaml fork in a better package Co-authored-by: Øyvind Raddum Berg <elacin@gmail.com>
- Loading branch information
1 parent
d0a8a8d
commit acdd7af
Showing
32 changed files
with
3,222 additions
and
3,598 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 2 additions & 6 deletions
8
bleep-cli/src/main/scala/bleep/commands/BuildReapplyTemplates.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,15 @@ | ||
package bleep | ||
package commands | ||
|
||
import bleep.internal.{FileUtils, ShortenAndSortJson, Templates} | ||
import bleep.internal.{asYamlString, FileUtils, Templates} | ||
import bleep.rewrites.normalizeBuild | ||
import io.circe.syntax._ | ||
|
||
case class BuildReapplyTemplates(started: Started) extends BleepCommand { | ||
override def run(): Either[BuildException, Unit] = { | ||
val normalizedBuild = normalizeBuild(started.build) | ||
val build = Templates.reapply(normalizedBuild, started.rawBuild.templates) | ||
|
||
FileUtils.writeString( | ||
started.buildPaths.bleepJsonFile, | ||
build.asJson.foldWith(ShortenAndSortJson).spaces2 | ||
) | ||
FileUtils.writeString(started.buildPaths.bleepYamlFile, asYamlString(build)) | ||
Right(()) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.