-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
28 lines (25 loc) · 847 Bytes
/
build.sbt
File metadata and controls
28 lines (25 loc) · 847 Bytes
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
name := "Euclid root"
scalaVersion in ThisBuild := "2.12.3"
lazy val root = project.in(file("."))
.aggregate(euclidJS, euclidJVM)
.settings(
publish := {},
publishLocal := {}
)
lazy val euclid = crossProject.in(file("."))
.settings(
name := "euclid",
version := "0.0.1-SNAPSHOT",
libraryDependencies += "org.scalatest" %%% "scalatest" % "3.0.4" % "test"
)
.jvmSettings(
libraryDependencies += "com.googlecode.lanterna" % "lanterna" % "3.0.1",
libraryDependencies += "net.java.dev.jna" % "jna-platform" % "5.1.0",
)
.jsSettings(
libraryDependencies += "org.scala-js" %%% "scalajs-dom" % "0.9.3",
npmDependencies in Compile += "rot-js" -> "0.6.2",
scalaJSUseMainModuleInitializer := true
)
lazy val euclidJVM = euclid.jvm
lazy val euclidJS = euclid.js.enablePlugins(ScalaJSBundlerPlugin)