-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sbt
64 lines (38 loc) · 1.57 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name := "scalajs-offline"
version := "1.0"
scalaVersion := "2.11.7"
lazy val root = project.in(file(".")).
enablePlugins(ScalaJSPlugin)
//scala
val scalajsReactVersion = "0.8.2"
val scalajsPouchDBVersion = "0.1.0"
val scalajsDomVersion = "0.8.1"
//js
val reactVersion = "0.12.1"
val pouchDBVersion = "3.3.0"
// scalajs deps
libraryDependencies ++= Seq(
"com.github.chandu0101.scalajs" %%% "pouchdb" % scalajsPouchDBVersion,
"org.scala-js" %%% "scalajs-dom" % scalajsDomVersion,
"com.github.japgolly.scalajs-react" %%% "extra" % scalajsReactVersion,
"com.github.japgolly.scalajs-react" %%% "core" % scalajsReactVersion
)
resolvers += "bintray/non" at "http://dl.bintray.com/non/maven"
// js deps
jsDependencies ++= Seq(
"org.webjars" % "react" % reactVersion / "react-with-addons.js" commonJSName "React",
"org.webjars" % "pouchdb" % pouchDBVersion / "pouchdb.min.js")
// creates single jsdeps resource file for easy integration in html page
skip in packageJSDependencies := false
// uTest settings
//utest.jsrunner.Plugin.utestJsSettings
persistLauncher := true
persistLauncher in Test := false
// copy javascript files to js folder,that are generated using fastOptJS/fullOptJS
crossTarget in(Compile, fullOptJS) := file("js")
crossTarget in(Compile, fastOptJS) := file("js")
crossTarget in(Compile, packageJSDependencies) := file("js")
//crossTarget in (Compile, packageScalaJSLauncher) := file("js")
artifactPath in(Compile, fastOptJS) := ((crossTarget in(Compile, fastOptJS)).value /
((moduleName in fastOptJS).value + "-opt.js"))
scalacOptions += "-feature"