visionforge/visionforge-plotly/build.gradle.kts

41 lines
834 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-03-07 16:19:43 +03:00
val plotlyVersion = "0.4.0-dev-1"
2021-02-16 14:49:15 +03:00
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"))
2021-03-07 16:19:43 +03:00
api("space.kscience:plotlykt-core:${plotlyVersion}")
2020-12-28 22:39:37 +03:00
}
}
}
}