Skip to content

Commit

Permalink
Remove duplicated files in distributions
Browse files Browse the repository at this point in the history
  • Loading branch information
sdercolin committed Oct 17, 2023
1 parent e7735eb commit 6c5c0a5
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -74,18 +74,28 @@ kotlin {
implementation(npm("js-yaml", "4.1.0"))
}
}
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 jsTest by getting {
dependencies {
implementation(kotlin("test"))
}
}
}
}

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")
}
mustRunAfter("jsBrowserDistribution")
}
tasks.named("build") {
dependsOn(cleanDistributedResources)
}

0 comments on commit 6c5c0a5

Please sign in to comment.