-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sc
40 lines (28 loc) · 990 Bytes
/
build.sc
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
import mill._
import mill.api.Loose
import mill.define.Target
import mill.scalajslib.ScalaJSModule
import mill.scalalib._
import mill.scalalib.api.CompilationResult
val projectScalaVersion = "3.0.0-RC2"
//noinspection ScalaFileName
object webApp extends JavaModule {
object frontend extends ScalaJSModule {
override def scalaVersion = projectScalaVersion
override def scalaJSVersion = "1.5.1"
override def ivyDeps: Target[Loose.Agg[Dep]] = super.ivyDeps() ++ Agg(
ivy"org.scala-js::scalajs-dom::1.1.0".withDottyCompat(projectScalaVersion)
)
}
object backend extends ScalaModule {
override def scalaVersion = projectScalaVersion
override def ivyDeps: Target[Loose.Agg[Dep]] = super.ivyDeps() ++ Agg(
ivy"com.lihaoyi::cask:0.7.9",
ivy"com.lihaoyi::scalatags:0.9.4".withDottyCompat(projectScalaVersion)
)
override def compile: T[CompilationResult] = T {
frontend.fastOpt.apply()
super.compile.apply()
}
}
}