From 94a88a3db8d3a68f15b6951c32e3ef0987bec4d7 Mon Sep 17 00:00:00 2001 From: vadwwxz Date: Thu, 7 Dec 2023 14:16:35 +0200 Subject: [PATCH] create setupJsApp feature for create js library/application using kmm --- .../kotlin/com/sliderzxc/gradle/js/SetupJsApp.kt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/main/kotlin/com/sliderzxc/gradle/js/SetupJsApp.kt diff --git a/src/main/kotlin/com/sliderzxc/gradle/js/SetupJsApp.kt b/src/main/kotlin/com/sliderzxc/gradle/js/SetupJsApp.kt new file mode 100644 index 0000000..ca5d0f3 --- /dev/null +++ b/src/main/kotlin/com/sliderzxc/gradle/js/SetupJsApp.kt @@ -0,0 +1,14 @@ +package com.sliderzxc.gradle.js + +import org.gradle.api.Project +import org.gradle.kotlin.dsl.configure +import org.jetbrains.kotlin.gradle.dsl.KotlinJsProjectExtension + +fun Project.setupJsApp() { + extensions.configure { + js(IR) { + browser() + binaries.executable() + } + } +} \ No newline at end of file