Skip to content

Commit

Permalink
release: v4.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ForteScarlet committed Oct 14, 2024
1 parent 31bbe24 commit 1a3b61a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1,498 deletions.
38 changes: 11 additions & 27 deletions buildSrc/src/main/kotlin/JsConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,30 +21,14 @@ import org.jetbrains.kotlin.gradle.targets.js.dsl.KotlinJsTargetDsl

inline fun KotlinJsTargetDsl.configJs(
nodeJs: Boolean = true,
browser: Boolean = true,
block: () -> Unit = {}
) {
if (nodeJs) {
nodejs()
// {
//// testTask {
//// useMocha {
//// timeout = "10000"
//// }
//// }
// }
}

if (browser) {
browser()
// {
// testTask{
// useKarma {
// useChromeHeadless()
// // useConfigDirectory(File(project.rootProject.projectDir, "karma"))
// }
// }
// }
nodejs {
testTask {
useMocha()
}
}
}

binaries.library()
Expand All @@ -55,10 +39,10 @@ inline fun KotlinJsTargetDsl.configJs(
fun Project.configJsTestTasks() {
// val shouldRunJsBrowserTest = !hasProperty("teamcity") || hasProperty("enable-js-tests")
// if (shouldRunJsBrowserTest) return
tasks.findByName("cleanJsBrowserTest")?.apply {
onlyIf { false }
}
tasks.findByName("jsBrowserTest")?.apply {
onlyIf { false }
}
// tasks.findByName("cleanJsBrowserTest")?.apply {
// onlyIf { false }
// }
// tasks.findByName("jsBrowserTest")?.apply {
// onlyIf { false }
// }
}
Loading

0 comments on commit 1a3b61a

Please sign in to comment.