64 lines
1.5 KiB
Kotlin
64 lines
1.5 KiB
Kotlin
@file:OptIn(ExperimentalKotlinGradlePluginApi::class)
|
|
|
|
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
|
|
import org.jetbrains.kotlin.gradle.dsl.JsSourceMapEmbedMode
|
|
|
|
plugins {
|
|
kotlin("multiplatform") version "2.1.10"
|
|
}
|
|
|
|
group = "nl.astraeus"
|
|
version = "2.0.0-SNAPSHOT"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven {
|
|
setUrl("https://gitea.astraeus.nl/api/packages/rnentjes/maven")
|
|
}
|
|
maven {
|
|
setUrl("https://gitea.astraeus.nl:8443/api/packages/rnentjes/maven")
|
|
}
|
|
}
|
|
|
|
kotlin {
|
|
js {
|
|
compilerOptions {
|
|
target.set("es2015")
|
|
sourceMap.set(true)
|
|
sourceMapEmbedSources.set(JsSourceMapEmbedMode.SOURCE_MAP_SOURCE_CONTENT_ALWAYS)
|
|
}
|
|
browser {
|
|
commonWebpackConfig {
|
|
sourceMaps = true
|
|
devtool = "inline-source-map"
|
|
}
|
|
binaries.executable()
|
|
distribution {
|
|
outputDirectory.set(File("$projectDir/web/"))
|
|
}
|
|
}
|
|
}
|
|
jvm {
|
|
withJava()
|
|
}
|
|
|
|
sourceSets {
|
|
val commonMain by getting {
|
|
dependencies {
|
|
api("nl.astraeus:vst-ui-base")
|
|
}
|
|
}
|
|
val jsMain by getting {
|
|
dependencies {
|
|
api("nl.astraeus:kotlin-komponent:1.2.4")
|
|
}
|
|
}
|
|
val jsTest by getting {
|
|
dependencies {
|
|
implementation(kotlin("test"))
|
|
}
|
|
}
|
|
val jvmMain by getting
|
|
}
|
|
}
|