-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
40 lines (33 loc) · 1.64 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
// to compile alone
val scala3Version = "3.1.1"
lazy val caos = project.in(file("lib/caos"))
.enablePlugins(ScalaJSPlugin)
.settings(scalaVersion := scala3Version)
lazy val whilelang = project.in(file("."))
.enablePlugins(ScalaJSPlugin)
.settings(
name := "whilelang",
version := "0.3.0",
scalaVersion := scala3Version,
scalacOptions += "-new-syntax",
scalaJSUseMainModuleInitializer := true,
Compile / mainClass := Some("whilelang.frontend.Main"),
Compile / fastLinkJS / scalaJSLinkerOutputDirectory := baseDirectory.value / "lib" / "caos"/ "tool" / "js" / "gen",
libraryDependencies ++= Seq(
// "org.scalatest" % "scalatest_3" % "3.2.9" % "test",
("org.typelevel" %%% "cats-parse" % "0.3.4"),
//
("org.scalatest" %% "scalatest" % "3.2.9"),
("be.doeraene" %%% "scalajs-jquery" % "1.0.0").cross(CrossVersion.for3Use2_13),//.withDottyCompat(scalaVersion.value),
("org.scala-js" %%% "scalajs-dom" % "1.2.0").cross(CrossVersion.for3Use2_13),//.withDottyCompat(scalaVersion.value),
("com.lihaoyi" %%% "scalatags" % "0.9.1").cross(CrossVersion.for3Use2_13)//.withDottyCompat(scalaVersion.value)
)
)
.dependsOn(caos)
// to compile within ReoLive with crossVersions
//scalaVersion := "3.0.0-M1"
//libraryDependencies ++= Seq(
// ("org.scala-lang.modules" %% "scala-parser-combinators" % "1.1.2").withDottyCompat(scalaVersion.value), //.cross(CrossVersion.for2_13Use3),
// ("org.scalatest" %% "scalatest" % "3.2.9" % "test").withDottyCompat(scalaVersion.value), //.cross(CrossVersion.for2_13Use3),
// ("org.typelevel" %% "cats-parse" % "0.3.4").withDottyCompat(scalaVersion.value)
//)