Fix JS build and move example to its own module

This commit is contained in:
Paul-Henri Froidmont 2025-08-21 14:10:47 +02:00
parent 73510857a6
commit 486e89c1f1
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
5 changed files with 64 additions and 63 deletions

View file

@ -29,10 +29,10 @@ object core extends ScalaCommon:
}
def jsBundle = Task {
val bundleDest = Task.dest / "static" / "scalive.js"
os.copy(
from = js.bundle().path,
to = bundleDest
to = Task.dest / "static" / "scalive.js",
createFolders = true
)
PathRef(Task.dest)
}
@ -45,5 +45,8 @@ object core extends ScalaCommon:
def utestVersion = "0.9.0"
object zio extends ScalaCommon:
def mvnDeps = Seq(mvn"dev.zio::zio-http:3.4.0")
override def moduleDeps = Seq(core)
def mvnDeps = Seq(mvn"dev.zio::zio-http:3.4.0")
def moduleDeps = Seq(core)
object example extends ScalaCommon:
def moduleDeps = Seq(zio)