-
Notifications
You must be signed in to change notification settings - Fork 92
/
build.sbt
56 lines (51 loc) · 2.07 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
import java.nio.charset.Charset
import org.scalajs.core.tools.io.{IO => toolsIO}
scalaVersion in ThisBuild := "2.11.8"
lazy val shared = project.in(file("."))
.enablePlugins(ScalaJSPlugin)
.settings(
scalacOptions ++= Seq(
"-Xlint",
"-deprecation",
"-Xfatal-warnings"
),
libraryDependencies ++= Seq(
"com.lihaoyi" %%% "upickle" % "0.4.1",
"org.scala-js" %%% "scalajs-dom" % "0.8.1" withSources() withJavadoc(),
"be.doeraene" %%% "scalajs-jquery" % "0.8.0",
"com.github.japgolly.scalajs-react" %%% "extra" % "0.8.3",
"com.lihaoyi" %%% "utest" % "0.3.0" % "test"
)
)
lazy val chromeapp = project.in(file("chromeapp")).dependsOn(shared)
.enablePlugins(ScalaJSPlugin)
.settings(
name := "dockerui",
persistLauncher := true,
persistLauncher in Test := false,
testFrameworks += new TestFramework("utest.runner.Framework"),
requiresDOM := true,
mainClass in Compile := Some("ChromeMainApp"),
artifactPath in (Compile, fullOptJS) := baseDirectory.value / "scalajs-opt.js",
artifactPath in (Compile, fastOptJS) := baseDirectory.value / "scalajs-fastopt.js",
artifactPath in (Compile, packageScalaJSLauncher) := baseDirectory.value / "scalajs-launcher.js"
)
lazy val electron = project.in(file("electron")).dependsOn(shared)
.enablePlugins(ScalaJSPlugin)
.settings(
name := "dockerui",
libraryDependencies ++= Seq(
"com.mscharley" %%% "scalajs-electron" % "0.1.2" withSources(),
"com.mscharley" %%% "scalajs-nodejs" % "0.1.1" withSources()
),
persistLauncher := true,
persistLauncher in Test := false,
testFrameworks += new TestFramework("utest.runner.Framework"),
requiresDOM := true,
mainClass in Compile := Some("ElectronMainApp"),
artifactPath in (Compile, fullOptJS) := baseDirectory.value / "dockerui-scalajs.js",
artifactPath in (Compile, fastOptJS) := baseDirectory.value / "dockerui-scalajs.js",
artifactPath in (Compile, packageScalaJSLauncher) := baseDirectory.value / "scalajs-launcher.js"
)
pollInterval := 100
fork in run := true