-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
33 lines (31 loc) · 897 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
31
32
33
val scalaV = "2.13.5"
lazy val sharedSettings = Seq(
organization := "com.github.lettenj61",
scalaVersion := scalaV,
Compile / scalacOptions ++= Seq(
"-deprecation",
"-encoding", "UTF-8",
"-feature",
"-unchecked",
// "-Xfatal-warnings",
"-Xlint",
),
)
lazy val g8js = project
.in(file("."))
.enablePlugins(ScalaJSPlugin)
.settings(sharedSettings)
.settings(
name := "g8js",
libraryDependencies ++= Seq(
"com.lihaoyi" %%% "utest" % "0.7.4" % "test",
"com.github.scopt" %%% "scopt" % "4.0.1",
"net.exoego" %%% "scala-js-nodejs-v14" % "0.13.0"
),
testFrameworks += new TestFramework("utest.runner.Framework"),
Compile / mainClass := Some("g8js.App"),
scalaJSLinkerConfig ~= {
_.withSourceMap(false).withModuleKind(ModuleKind.CommonJSModule)
},
scalaJSUseMainModuleInitializer := true
)