44 lines
No EOL
976 B
Text
44 lines
No EOL
976 B
Text
plugins {
|
|
kotlin("multiplatform")
|
|
id("org.jetbrains.compose") version Versions.composeDesktopWeb
|
|
}
|
|
|
|
version = "1.0"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
|
|
}
|
|
|
|
kotlin {
|
|
js(IR) {
|
|
browser()
|
|
binaries.executable()
|
|
}
|
|
|
|
sourceSets {
|
|
val jsMain by getting {
|
|
dependencies {
|
|
implementation(compose.web.widgets)
|
|
implementation(compose.web.core)
|
|
implementation(compose.runtime)
|
|
|
|
implementation(project(":common"))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// workaround for https://youtrack.jetbrains.com/issue/KT-48273
|
|
afterEvaluate {
|
|
rootProject.extensions.configure<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension> {
|
|
versions.webpackDevServer.version = "4.0.0"
|
|
versions.webpackCli.version = "4.9.0"
|
|
}
|
|
}
|
|
|
|
compose.desktop {
|
|
application {
|
|
mainClass = ""
|
|
}
|
|
} |