Skip to content

Commit

Permalink
Add gitignore to ignore target
Browse files Browse the repository at this point in the history
  • Loading branch information
eed3si9n committed Oct 12, 2024
1 parent 1b001d7 commit a395f83
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ TaskKey[Unit]("checkOnTagAndCommitDirty") := check(version.value, s"1.0.0-1-${he

TaskKey[Unit]("gitInitSetup") := {
implicit def log2log(log: Logger): scala.sys.process.ProcessLogger = sbtLoggerToScalaSysProcessLogger(log)
IO.writeLines(baseDirectory.value / ".gitignore", List("target", ".bsp"))
"git config --global init.defaultBranch main".!!(streams.value.log)
"git init".!!(streams.value.log)
"git config user.email [email protected]".!!(streams.value.log)
"git config user.name dynver".!!(streams.value.log)
Expand Down
2 changes: 2 additions & 0 deletions sbtdynver/src/sbt-test/dynver/custom-version-string/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ TaskKey[Unit]("checkOnTagAndCommitDirty") := check(version.value, s"1.0.0-1-${he

TaskKey[Unit]("gitInitSetup") := {
implicit def log2log(log: Logger): scala.sys.process.ProcessLogger = sbtLoggerToScalaSysProcessLogger(log)
IO.writeLines(baseDirectory.value / ".gitignore", List("target", ".bsp"))
"git config --global init.defaultBranch main".!!(streams.value.log)
"git init".!!(streams.value.log)
"git config user.email [email protected]".!!(streams.value.log)
"git config user.name dynver".!!(streams.value.log)
Expand Down
2 changes: 2 additions & 0 deletions sbtdynver/src/sbt-test/dynver/distance-separator/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ TaskKey[Unit]("checkOnTagAndCommitDirty") := check(version.value, s"1.0.0-1-${he

TaskKey[Unit]("gitInitSetup") := {
implicit def log2log(log: Logger): scala.sys.process.ProcessLogger = sbtLoggerToScalaSysProcessLogger(log)
IO.writeLines(baseDirectory.value / ".gitignore", List("target", ".bsp"))
"git config --global init.defaultBranch main".!!(streams.value.log)
"git init".!!(streams.value.log)
"git config user.email [email protected]".!!(streams.value.log)
"git config user.name dynver".!!(streams.value.log)
Expand Down
2 changes: 2 additions & 0 deletions sbtdynver/src/sbt-test/dynver/versions/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ TaskKey[Unit]("checkOnTagAndCommitDirty") := check(version.value, s"1.0.0+1-${he

TaskKey[Unit]("gitInitSetup") := {
implicit def log2log(log: Logger): scala.sys.process.ProcessLogger = sbtLoggerToScalaSysProcessLogger(log)
IO.writeLines(baseDirectory.value / ".gitignore", List("target", ".bsp"))
"git config --global init.defaultBranch main".!!(streams.value.log)
"git init".!!(streams.value.log)
"git config user.email [email protected]".!!(streams.value.log)
"git config user.name dynver".!!(streams.value.log)
Expand Down

0 comments on commit a395f83

Please sign in to comment.