-
Notifications
You must be signed in to change notification settings - Fork 26
/
build.sbt
49 lines (40 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
name := "scala-js-d3v4"
version := "master-SNAPSHOT"
organization := "com.github.fdietze.scala-js-d3v4"
crossScalaVersions := Seq("2.12.20", "2.13.14", "3.5.0")
scalaVersion := crossScalaVersions.value.last
val isScala3 = Def.setting(CrossVersion.partialVersion(scalaVersion.value).exists(_._1 == 3))
scalacOptions --= Seq("-Xfatal-warnings") // overwrite sbt-tpolecat setting
scalacOptions ++= (if (isScala3.value) Seq("-scalajs") else Nil) // needed for Scala3 + ScalaJS
enablePlugins(ScalaJSPlugin, ScalaJSBundlerPlugin)
libraryDependencies ++= Seq(
"org.scala-js" %%% "scalajs-dom" % "2.8.0",
)
Compile / npmDependencies ++= Seq(
"d3" -> "5.9.2", // https://github.com/d3/d3/releases
)
useYarn := true
/* pgpSecretRing in Global := file("secring.gpg") */
/* pgpPublicRing in Global := file("pubring.gpg") */
/* pgpPassphrase in Global := Some("".toCharArray) */
/* organization in Global := "com.github.fdietze" */
/* pomExtra := { */
/* <url>https://github.com/fdietze/scala-js-d3v4</url> */
/* <licenses> */
/* <license> */
/* <name>MIT</name> */
/* <url>http://opensource.org/licenses/MIT</url> */
/* </license> */
/* </licenses> */
/* <scm> */
/* <url>https://github.com/fdietze/scala-js-d3v4</url> */
/* <connection>scm:git:git@github.com:fdietze/scala-js-d3v4.git</connection> */
/* </scm> */
/* <developers> */
/* <developer> */
/* <id>fdietze</id> */
/* <name>Felix Dietze</name> */
/* <url>https://github.com/fdietze</url> */
/* </developer> */
/* </developers> */
/* } */