visionforge/visionforge-plotly/build.gradle.kts

41 lines
831 B
Plaintext
Raw Normal View History

2020-12-28 22:39:37 +03:00
plugins {
2021-02-23 21:47:18 +03:00
id("ru.mipt.npm.gradle.mpp")
2020-12-28 22:39:37 +03:00
}
2021-02-16 14:49:15 +03:00
val plotlyVersion = "0.3.1"
kscience{
2020-12-28 22:39:37 +03:00
useSerialization()
}
kotlin {
2021-01-12 12:52:22 +03:00
js{
//binaries.library()
binaries.executable()
browser {
webpackTask {
this.outputFileName = "js/visionforge-three.js"
}
}
}
afterEvaluate {
val jsBrowserDistribution by tasks.getting
tasks.getByName<ProcessResources>("jvmProcessResources") {
dependsOn(jsBrowserDistribution)
afterEvaluate {
from(jsBrowserDistribution)
}
}
}
2020-12-28 22:39:37 +03:00
sourceSets {
commonMain {
dependencies {
api(project(":visionforge-core"))
api("kscience.plotlykt:plotlykt-core:${plotlyVersion}")
}
}
}
}