Skip to content

Commit

Permalink
create setupJsApp feature for create js library/application using kmm
Browse files Browse the repository at this point in the history
  • Loading branch information
sliderzxc committed Dec 7, 2023
1 parent 80c5bb8 commit 94a88a3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/main/kotlin/com/sliderzxc/gradle/js/SetupJsApp.kt
Original file line number Diff line number Diff line change
@@ -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<KotlinJsProjectExtension> {
js(IR) {
browser()
binaries.executable()
}
}
}

0 comments on commit 94a88a3

Please sign in to comment.