Skip to content

Commit

Permalink
Scala JS build
Browse files Browse the repository at this point in the history
  • Loading branch information
japgolly committed Jun 29, 2014
1 parent 7aec203 commit 84e2a0f
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 4 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# Scala JS

This has been compiled for Scala.JS and published to bintray under `japgolly.scalaz`.

project/plugins.sbt
```
addSbtPlugin("me.lessis" % "bintray-sbt" % "0.1.1")
```

build.sbt
```
resolvers += bintray.Opts.resolver.repo("japgolly", "forks")
libraryDependencies += "japgolly.scalaz" %%% "scalaz-core" % "7.1.0-M7"
```


# Scalaz

Scalaz is a Scala library for functional programming.
Expand Down
13 changes: 9 additions & 4 deletions project/build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,15 @@ object build extends Build {
reapply(Seq(scalazMimaBasis in ThisBuild := releaseV), st)
}

lazy val standardSettings: Seq[Sett] = Defaults.defaultSettings ++ sbtrelease.ReleasePlugin.releaseSettings ++ Seq[Sett](
organization := "org.scalaz",
import bintray.{Keys => BK}
lazy val standardSettings: Seq[Sett] = Defaults.defaultSettings ++ sbtrelease.ReleasePlugin.releaseSettings ++
scala.scalajs.sbtplugin.ScalaJSPlugin.scalaJSBuildSettings ++
bintray.Plugin.bintrayPublishSettings ++
Seq[Sett](
licenses += ("MIT", url("http://opensource.org/licenses/MIT")),
organization := "japgolly.scalaz",
BK.repository in BK.bintray := "forks",
publishMavenStyle := true,

scalaVersion := "2.9.2",
crossScalaVersions := Seq("2.9.2", "2.9.3", "2.10.1", "2.11.0-RC1"),
Expand Down Expand Up @@ -108,8 +115,6 @@ object build extends Build {
if (index.exists()) Desktop.getDesktop.open(out / "index.html")
},

credentialsSetting,
publishSetting,
publishArtifact in Test := false,

// adapted from sbt-release defaults
Expand Down
9 changes: 9 additions & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,12 @@ addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.2.5")
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "0.1.6")

addSbtPlugin("com.eed3si9n" % "sbt-unidoc" % "0.2.0")

addSbtPlugin("org.scala-lang.modules.scalajs" % "scalajs-sbt-plugin" % "0.5.0")

resolvers += Resolver.url(
"bintray-sbt-plugin-releases",
url("http://dl.bintray.com/content/sbt/sbt-plugin-releases"))(
Resolver.ivyStylePatterns)

addSbtPlugin("me.lessis" % "bintray-sbt" % "0.1.1")

0 comments on commit 84e2a0f

Please sign in to comment.