[Gradle, JS] WA for tests with multiple binaries

This commit is contained in:
Ilya Goncharov
2021-03-18 15:37:19 +03:00
committed by TeamCityServer
parent 8ffe70cb4d
commit a61312120b
3 changed files with 27 additions and 1 deletions
@@ -12,9 +12,24 @@ repositories {
kotlin {
js {
// For now we do not recommend multiple binaries, so we test it just in case
binaries.library()
binaries.executable()
nodejs()
browser()
}
}
// We need it for suppress warnings of Gradle 7.0
// We need to think about it, when we will support multiple binaries
tasks.named("nodeProductionLibraryPrepare") {
mustRunAfter("productionExecutableCompileSync")
}
tasks.named("browserProductionLibraryPrepare") {
mustRunAfter("productionExecutableCompileSync")
}
tasks.named("browserProductionWebpack") {
mustRunAfter("productionLibraryCompileSync")
}
@@ -12,8 +12,16 @@ repositories {
kotlin {
js {
// For now we do not recommend multiple binaries, so we test it just in case
binaries.library()
binaries.executable()
nodejs()
}
}
// We need it for suppress warnings of Gradle 7.0
// We need to think about it, when we will support multiple binaries
tasks.named("nodeProductionLibraryPrepare") {
mustRunAfter("productionExecutableCompileSync")
}
@@ -20,7 +20,10 @@ import org.jetbrains.kotlin.gradle.plugin.mpp.disambiguateName
import org.jetbrains.kotlin.gradle.targets.js.JsAggregatingExecutionSource
import org.jetbrains.kotlin.gradle.targets.js.KotlinJsReportAggregatingTestRun
import org.jetbrains.kotlin.gradle.targets.js.KotlinJsTarget
import org.jetbrains.kotlin.gradle.targets.js.dsl.*
import org.jetbrains.kotlin.gradle.targets.js.dsl.KotlinJsBrowserDsl
import org.jetbrains.kotlin.gradle.targets.js.dsl.KotlinJsNodeDsl
import org.jetbrains.kotlin.gradle.targets.js.dsl.KotlinJsSubTargetContainerDsl
import org.jetbrains.kotlin.gradle.targets.js.dsl.KotlinJsTargetDsl
import org.jetbrains.kotlin.gradle.targets.js.npm.npmProject
import org.jetbrains.kotlin.gradle.tasks.registerTask
import org.jetbrains.kotlin.gradle.utils.lowerCamelCaseName