-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.sbt
34 lines (23 loc) · 1.28 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
enablePlugins(ScalaJSPlugin)
organization := "com.payalabs"
name := "scalajs-react-mdl"
version := "0.2.0-SNAPSHOT"
scalaVersion in ThisBuild := "2.12.1"
crossScalaVersions in ThisBuild := Seq("2.11.8", "2.12.1")
jsDependencies += RuntimeDOM
libraryDependencies += "com.github.japgolly.scalajs-react" %%% "core" % "0.11.3"
jsDependencies += "org.webjars.bower" % "react" % "15.0.1" / "react-with-addons.js" minified "react-with-addons.min.js" commonJSName "React"
jsDependencies += "org.webjars.bower" % "react" % "15.0.1" / "react-dom.js" minified "react-dom.min.js" dependsOn "react-with-addons.js" commonJSName "ReactDOM"
lazy val root = project.in(file("."))
lazy val examples = project.settings(
persistLauncher in Compile := true,
skip in packageJSDependencies := false
).dependsOn(root).enablePlugins(ScalaJSPlugin)
import com.typesafe.sbt.SbtSite.SiteKeys._
site.settings
makeSite <<= makeSite dependsOn (fullOptJS in (examples, Compile))
siteMappings ++= Seq(
baseDirectory.value / "examples" / "target" / "scala-2.11" / "examples-opt.js" -> "examples-opt.js",
baseDirectory.value / "examples" / "target" / "scala-2.11" / "examples-launcher.js" -> "examples-launcher.js",
baseDirectory.value / "examples" / "target" / "scala-2.11" / "examples-jsdeps.js" -> "examples-jsdeps.js"
)