mirror of
https://github.com/phfroidmont/scalive.git
synced 2025-12-25 05:26:59 +01:00
Generate dom elements with scala-dom-types
This commit is contained in:
parent
f53a1cab66
commit
ae0dc04a9e
15 changed files with 407 additions and 108 deletions
13
build.mill
13
build.mill
|
|
@ -1,16 +1,25 @@
|
|||
//| mvnDeps : ["com.raquo::domtypes:18.1.0"]
|
||||
|
||||
package build
|
||||
|
||||
import mill.*, scalalib.*
|
||||
import mill.api.Task.Simple
|
||||
|
||||
trait Common extends ScalaModule:
|
||||
def scalaVersion = "3.7.2"
|
||||
def scalaVersion = "3.7.2"
|
||||
def scalacOptions = Seq("-Wunused:all")
|
||||
|
||||
object core extends Common:
|
||||
def mvnDeps = Seq(mvn"dev.zio::zio-json:0.7.44")
|
||||
|
||||
def generatedSources = Task {
|
||||
new DomDefsGenerator((Task.dest / "core/src/scalive").toString).generate()
|
||||
super.generatedSources() ++ Seq(PathRef(Task.dest))
|
||||
}
|
||||
|
||||
object test extends ScalaTests with TestModule.Utest:
|
||||
def utestVersion = "0.9.0"
|
||||
|
||||
object zio extends Common:
|
||||
def mvnDeps = Seq(mvn"dev.zio::zio-http:3.4.0")
|
||||
def mvnDeps = Seq(mvn"dev.zio::zio-http:3.4.0")
|
||||
override def moduleDeps = Seq(core)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue