-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
47 lines (41 loc) · 1.46 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
import org.scalajs.linker.interface.ModuleSplitStyle
Global / onChangedBuildSource := ReloadOnSourceChanges
ThisBuild / organization := "eu.pureframes"
ThisBuild / scalaVersion := IO.read(file("./scalaVersion.txt")).trim
ThisBuild / version := "0.0.1"
ThisBuild / scalafixOnCompile := true
ThisBuild / semanticdbEnabled := true
ThisBuild / semanticdbVersion := scalafixSemanticdb.revision
ThisBuild / resolvers ++=
Resolver.sonatypeOssRepos("snapshots")
ThisBuild / resolvers +=
"sonatype-s01-snapshots" at "https://s01.oss.sonatype.org/content/repositories/snapshots"
lazy val puretetrio = project
.in(file("."))
.aggregate(frontend)
lazy val frontend = project
.enablePlugins(ScalaJSPlugin)
.settings(
libraryDependencies ++= Seq.concat(
Dependencies.Indigo.deps.value,
Dependencies.Tyrian.deps.value,
Dependencies.munit.value,
Dependencies.pprint.value,
Dependencies.dom.value
),
scalaJSLinkerConfig ~= {
_.withModuleKind(ModuleKind.ESModule)
.withModuleSplitStyle(
ModuleSplitStyle.SmallModulesFor(List("pureframes.tetrio"))
)
.withSourceMap(
false
) // TODO: source map are not correctly loaded in vite :sad
// check: https://www.npmjs.com/package/source-map-support (?)
},
scalacOptions ++= Seq(
// "-language:strictEquality" TODO: fix bugs
)
)
addCommandAlias("dev", "~ fastLinkJS")
addCommandAlias("build", "fullLinkJS")