generated from edadma/cross-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
executable file
·57 lines (56 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
57
ThisBuild / licenses += "ISC" -> url("https://opensource.org/licenses/ISC")
ThisBuild / versionScheme := Some("semver-spec")
lazy val squiggly = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.in(file("."))
.settings(
name := "squiggly",
version := "0.1.15-pre.1",
scalaVersion := "2.13.6",
scalacOptions ++=
Seq(
"-deprecation",
"-feature",
"-unchecked",
"-language:postfixOps",
"-language:implicitConversions",
"-language:existentials",
"-language:dynamics",
"-Xasync"
),
organization := "io.github.edadma",
githubOwner := "edadma",
githubRepository := name.value,
resolvers += Resolver.githubPackages("edadma"),
mainClass := Some(s"${organization.value}.${name.value}.Main"),
libraryDependencies += "org.scalatest" %%% "scalatest" % "3.2.10" % "test",
libraryDependencies ++= Seq(
"io.github.edadma" %%% "cross-platform" % "0.1.1",
"io.github.edadma" %%% "char-reader" % "0.1.7",
"io.github.edadma" %%% "datetime" % "0.1.11",
),
libraryDependencies ++= Seq(
"com.github.scopt" %%% "scopt" % "4.0.1",
"com.lihaoyi" %%% "pprint" % "0.6.6" % "test",
"org.parboiled" %%% "parboiled" % "2.3.0",
),
publishMavenStyle := true,
Test / publishArtifact := false,
licenses += "ISC" -> url("https://opensource.org/licenses/ISC")
)
.jvmSettings(
libraryDependencies += "org.scala-js" %% "scalajs-stubs" % "1.0.0" % "provided",
libraryDependencies += "io.github.edadma" %% "yaml" % "0.1.11"
)
.nativeSettings(
nativeLinkStubs := true,
libraryDependencies += "io.github.edadma" %%% "libyaml" % "0.1.8"
)
.jsSettings(
jsEnv := new org.scalajs.jsenv.nodejs.NodeJSEnv(),
// Test / scalaJSUseMainModuleInitializer := true,
// Test / scalaJSUseTestModuleInitializer := false,
Test / scalaJSUseMainModuleInitializer := false,
Test / scalaJSUseTestModuleInitializer := true,
scalaJSUseMainModuleInitializer := true,
libraryDependencies += "io.github.edadma" %%% "yaml" % "0.1.11"
)