mirror of
https://github.com/phfroidmont/scalive.git
synced 2025-12-25 05:26:59 +01:00
Fix JS build and move example to its own module
This commit is contained in:
parent
73510857a6
commit
486e89c1f1
5 changed files with 64 additions and 63 deletions
11
build.mill
11
build.mill
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue