visionforge/visionforge-plotly/build.gradle.kts

37 lines
738 B
Plaintext

plugins {
id("ru.mipt.npm.gradle.mpp")
}
val plotlyVersion = "0.5.0"
kscience {
useSerialization()
}
kotlin {
js {
//binaries.library()
binaries.executable()
browser {
webpackTask {
this.outputFileName = "js/visionforge-three.js"
}
}
}
val jsBrowserDistribution by tasks.getting
tasks.getByName<ProcessResources>("jvmProcessResources") {
dependsOn(jsBrowserDistribution)
from(jsBrowserDistribution)
}
sourceSets {
commonMain {
dependencies {
api(project(":visionforge-core"))
api("space.kscience:plotlykt-core:${plotlyVersion}")
}
}
}
}