-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
executable file
·39 lines (37 loc) · 1.43 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
publish / skip := true
ThisBuild / licenses += "ISC" -> url("https://opensource.org/licenses/ISC")
ThisBuild / versionScheme := Some("semver-spec")
lazy val table = crossProject(JSPlatform, JVMPlatform, NativePlatform).in(file(".")).
settings(
name := "table",
version := "1.0.4",
scalaVersion := "3.2.0",
scalacOptions ++=
Seq(
"-deprecation", "-feature", "-unchecked",
"-language:postfixOps", "-language:implicitConversions", "-language:existentials", "-language:dynamics",
),
organization := "io.github.edadma",
githubOwner := "edadma",
githubRepository := "table",
mainClass := Some("io.github.edadma.table.Main"),
Test / mainClass := Some("io.github.edadma.table.Main"),
// libraryDependencies += "org.scalatest" %%% "scalatest" % "3.2.3" % "test",
publishMavenStyle := true,
Test / publishArtifact := false,
licenses := Seq("ISC" -> url("https://opensource.org/licenses/ISC"))
).
jvmSettings(
libraryDependencies += "org.scala-js" %% "scalajs-stubs" % "1.1.0" % "provided",
).
nativeSettings(
nativeLinkStubs := true,
).
jsSettings(
jsEnv := new org.scalajs.jsenv.nodejs.NodeJSEnv(),
Test / scalaJSUseMainModuleInitializer := true,
Test / scalaJSUseTestModuleInitializer := false,
// Test / scalaJSUseMainModuleInitializer := false,
// Test / scalaJSUseTestModuleInitializer := true,
scalaJSUseMainModuleInitializer := false
)