68 lines
1.6 KiB
Kotlin
68 lines
1.6 KiB
Kotlin
import org.jetbrains.kotlin.gradle.targets.js.webpack.KotlinWebpackOutput
|
|
|
|
buildscript {
|
|
apply(from = "common.gradle.kts")
|
|
}
|
|
|
|
plugins {
|
|
kotlin("multiplatform")
|
|
kotlin("plugin.serialization")
|
|
id("maven-publish")
|
|
application
|
|
}
|
|
|
|
kotlin {
|
|
js {
|
|
compilerOptions {
|
|
target.set("es2015")
|
|
}
|
|
//useEsModules()
|
|
//useCommonJs()
|
|
|
|
binaries.executable()
|
|
browser {
|
|
commonWebpackConfig {
|
|
outputFileName = "vst-chip-worklet-ui.js"
|
|
//cssSupport.enabled = true
|
|
sourceMaps = true
|
|
}
|
|
|
|
distribution {
|
|
outputDirectory.set(File("$projectDir/web/"))
|
|
}
|
|
}
|
|
}
|
|
jvm{
|
|
withJava()
|
|
}
|
|
|
|
sourceSets {
|
|
val commonMain by getting {
|
|
dependencies {
|
|
implementation(project(":common"))
|
|
//base
|
|
api("nl.astraeus:kotlin-css-generator:1.0.7")
|
|
}
|
|
}
|
|
val jsMain by getting {
|
|
dependencies {
|
|
//base
|
|
implementation("nl.astraeus:kotlin-komponent-js:1.2.2-SNAPSHOT")
|
|
}
|
|
}
|
|
val jsTest by getting {
|
|
dependencies {
|
|
implementation(kotlin("test-js"))
|
|
}
|
|
}
|
|
val jvmMain by getting {
|
|
dependencies {
|
|
//base
|
|
|
|
implementation("io.undertow:undertow-core:2.3.13.Final")
|
|
implementation("org.jetbrains.kotlinx:kotlinx-html-jvm:0.11.0")
|
|
}
|
|
}
|
|
}
|
|
}
|