visionforge/visionforge-plotly/build.gradle.kts

37 lines
738 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
}
val plotlyVersion = "0.5.0"
2021-02-16 14:49:15 +03:00
2021-05-05 15:28:06 +03:00
kscience {
2020-12-28 22:39:37 +03:00
useSerialization()
}
kotlin {
2021-05-05 15:28:06 +03:00
js {
2021-01-12 12:52:22 +03:00
//binaries.library()
binaries.executable()
browser {
webpackTask {
this.outputFileName = "js/visionforge-three.js"
}
}
}
2021-05-05 15:28:06 +03:00
val jsBrowserDistribution by tasks.getting
2021-01-12 12:52:22 +03:00
2021-05-05 15:28:06 +03:00
tasks.getByName<ProcessResources>("jvmProcessResources") {
dependsOn(jsBrowserDistribution)
from(jsBrowserDistribution)
2021-01-12 12:52:22 +03:00
}
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
}
}
}
}