-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
56 lines (53 loc) · 1.77 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
import chrome.Impl._
import chrome.permissions.APIPermission._
import net.lullabyte.{Chrome, ChromeSbtPlugin}
lazy val root = project.in(file("."))
.enablePlugins(ChromeSbtPlugin)
.settings(
name := "System Monitor",
version := "0.1.0",
scalaVersion := "2.11.8",
scalacOptions ++= Seq(
"-language:implicitConversions",
"-language:existentials",
"-Xlint",
"-deprecation",
"-Xfatal-warnings",
"-feature"
),
persistLauncher := true,
persistLauncher in Test := false,
relativeSourceMaps := true,
libraryDependencies ++= Seq(
"org.scala-js" %%% "scalajs-dom" % "0.9.0" withSources() withJavadoc(),
"com.github.japgolly.scalajs-react" %%% "core" % "0.9.1" withSources() withJavadoc(),
"com.github.japgolly.scalajs-react" %%% "extra" % "0.9.1" withSources() withJavadoc(),
"com.github.japgolly.scalacss" %%% "core" % "0.3.0" withSources() withJavadoc(),
"com.github.japgolly.scalacss" %%% "ext-react" % "0.3.0" withSources() withJavadoc(),
"net.lullabyte" %%% "scala-js-chrome" % "0.2.0" withSources() withJavadoc()
),
jsDependencies += "org.webjars" % "react" % "0.13.3" / "react-with-addons.min.js" commonJSName "React",
skip in packageJSDependencies := false,
chromeManifest := AppManifest(
name = name.value,
version = version.value,
app = App(
background = Background(
scripts = List("deps.js", "main.js", "launcher.js")
)
),
defaultLocale = Some("en"),
icons = Chrome.icons(
"assets/icons",
"app.png",
Set(16, 32, 48, 64, 96, 128, 256, 512)
),
permissions = Set(
System.CPU,
System.Display,
System.Memory,
System.Network,
Storage
)
)
)