-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.sbt
30 lines (27 loc) · 885 Bytes
/
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
lazy val akkajs =
project
.in(file("."))
.enablePlugins(ScalaJSPlugin)
.settings(
name := "akkajs",
organization := "org.akka-js",
scalaVersion := "2.12.6",
scalacOptions := Seq(
"-feature",
"-language:_",
"-deprecation",
"-P:scalajs:sjsDefinedByDefault"
),
libraryDependencies ++= Seq(
"org.akka-js" %%% "akkajsactor" % "1.2.5.13"
),
scalaJSUseMainModuleInitializer in Global := true,
scalaJSModuleKind := ModuleKind.CommonJSModule,
skip in packageJSDependencies := false,
deploy := {
val opt = (fullOptJS in Compile).value.data
val target = baseDirectory.value / "lib" / "akkajs.js"
IO.copy(Seq((opt -> target)), CopyOptions(true, false, false))
}
)
val deploy: TaskKey[Unit] = taskKey[Unit]("akka.js binaries to bin folder")