Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyaGulya committed Apr 22, 2024
1 parent f5f6523 commit 20267be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
import org.jetbrains.kotlin.gradle.dsl.kotlinExtension
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl
import org.jetbrains.kotlin.gradle.targets.js.dsl.KotlinJsTargetDsl
import org.jetbrains.kotlin.konan.target.HostManager

class MultiplatformConventions : Plugin<Project> {
Expand All @@ -22,23 +21,21 @@ class MultiplatformConventions : Plugin<Project> {

jvm()

val jsConfigure: KotlinJsTargetDsl.() -> Unit = {
browser {
@OptIn(ExperimentalWasmDsl::class)
listOf(js(), wasmJs()).forEach {
it.browser {
testTask {
it.useKarma {
useChromeHeadless()
}
}
}
compilations.configureEach {
it.compilations.configureEach {
it.kotlinOptions {
moduleKind = "umd"
}
}
}
js(jsConfigure)
@OptIn(ExperimentalWasmDsl::class)
wasmJs(jsConfigure)

@OptIn(ExperimentalKotlinGradlePluginApi::class)
applyDefaultHierarchyTemplate {
Expand Down
13 changes: 2 additions & 11 deletions drivers/web-worker-driver/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,8 @@ plugins {
}

kotlin {
js {
browser {
testTask {
useKarma {
useChromeHeadless()
}
}
}
}
wasmJs {
browser {
[js(), wasmJs()].forEach {
it.browser {
testTask {
useKarma {
useChromeHeadless()
Expand Down

0 comments on commit 20267be

Please sign in to comment.