You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.2 KiB
54 lines
1.2 KiB
3 years ago
|
plugins {
|
||
2 years ago
|
kotlin("multiplatform")
|
||
|
id("org.jetbrains.compose")
|
||
3 years ago
|
}
|
||
|
|
||
|
group = "me.user"
|
||
|
version = "1.0"
|
||
|
|
||
|
repositories {
|
||
|
google()
|
||
|
mavenCentral()
|
||
|
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
|
||
|
}
|
||
|
|
||
3 years ago
|
|
||
3 years ago
|
kotlin {
|
||
|
js(IR) {
|
||
|
browser {
|
||
|
testTask {
|
||
|
testLogging.showStandardStreams = true
|
||
|
useKarma {
|
||
|
useChromeHeadless()
|
||
|
useFirefox()
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
binaries.executable()
|
||
|
}
|
||
|
sourceSets {
|
||
|
val jsMain by getting {
|
||
|
dependencies {
|
||
|
implementation(compose.web.core)
|
||
|
implementation(compose.runtime)
|
||
|
}
|
||
|
}
|
||
|
val jsTest by getting {
|
||
|
dependencies {
|
||
|
implementation(kotlin("test-js"))
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
3 years ago
|
|
||
|
afterEvaluate {
|
||
|
rootProject.extensions.configure<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension> {
|
||
|
nodeVersion = "16.0.0"
|
||
|
}
|
||
|
|
||
|
rootProject.plugins.withType(org.jetbrains.kotlin.gradle.targets.js.yarn.YarnPlugin::class.java) {
|
||
|
rootProject.the<org.jetbrains.kotlin.gradle.targets.js.yarn.YarnRootExtension>().resolution("colors", "1.4.0")
|
||
|
}
|
||
|
}
|
||
|
|