Skip to content

Commit

Permalink
Point JS source maps to Github
Browse files Browse the repository at this point in the history
  • Loading branch information
japgolly committed Sep 11, 2014
1 parent 18e3d2b commit 57be87d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions project/build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,17 @@ object build extends Build {

private def gitHash = sys.process.Process("git rev-parse HEAD").lines_!.head

val sourceMapOpt = {
val a = new java.io.File("").toURI.toString.replaceFirst("/$", "")
val g = "https://raw.githubusercontent.com/japgolly/scalaz/v7.1.0-js"
s"-P:scalajs:mapSourceURI:$a->$g/"
}

lazy val standardSettings: Seq[Sett] = Defaults.defaultSettings ++ sbtrelease.ReleasePlugin.releaseSettings ++
scala.scalajs.sbtplugin.ScalaJSPlugin.scalaJSBuildSettings ++
Seq[Sett](
organization := "com.github.japgolly.fork.scalaz",
scalacOptions += sourceMapOpt,

scalaVersion := "2.10.4",
crossScalaVersions := Seq("2.9.3", "2.10.4", "2.11.2"),
Expand Down

0 comments on commit 57be87d

Please sign in to comment.