Skip to content

Commit

Permalink
Fix resources resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-weng-s committed May 21, 2024
1 parent 99d0510 commit 981ed77
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -80,21 +80,16 @@ kotlin {
}

val copyCoreResources by tasks.register<Copy>("copyCoreResources") {
from("core/src/main/resources")
into("build/js/packages/utaformatix/kotlin")
from("core/build/processedResources/js/main") {
include("**/*.*")
}
into("build/js/packages/utaformatix/kotlin/")
mustRunAfter("core:processResources")
}
tasks.named("jsProcessResources") {
dependsOn(copyCoreResources)
}

val copyJsResources by tasks.register<Copy>("copyJsResources") {
from("src/jsMain/resources")
into("build/js/packages/utaformatix-test/kotlin")
mustRunAfter("jsTestTestDevelopmentExecutableCompileSync")
}
tasks.named("jsBrowserTest") {
dependsOn(copyJsResources)
}
val cleanDistributedResources by tasks.register<Delete>("cleanDistributedResources") {
listOf("format_templates", "images", "texts").forEach {
delete("build/distributions/$it")
Expand Down

0 comments on commit 981ed77

Please sign in to comment.