Skip to content

Instantly share code, notes, and snippets.

@pathikrit
Created August 30, 2017 15:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pathikrit/0da033d1d8c5909e783487d5b4f60021 to your computer and use it in GitHub Desktop.
Save pathikrit/0da033d1d8c5909e783487d5b4f60021 to your computer and use it in GitHub Desktop.
Local sbt
triggeredMessage := Watched.clearWhenTriggered
libraryDependencies += "com.lihaoyi" % "ammonite" % "latest.release" % "test" cross CrossVersion.full
initialCommands in (Test, console) := """ammonite.Main().run()"""
watchSources ++= (
(baseDirectory.value * "*.sbt").get
++ (baseDirectory.value / "project" * "*.scala").get
++ (baseDirectory.value / "project" * "*.sbt").get
)
addCommandAlias("tc", "test:compile")
addCommandAlias("itc", "it:compile")
addCommandAlias("rtu", "; reload ; test:update")
addCommandAlias("rtc", "; reload ; test:compile")
addCommandAlias("ru", "; reload ; update")
addCommandAlias("rc", "; reload ; compile")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment