visionforge/jupyter/visionforge-gdml-jupyter/build.gradle.kts

59 lines
1.3 KiB
Plaintext
Raw Normal View History

2021-03-07 19:22:30 +03:00
plugins {
2021-03-10 21:58:28 +03:00
id("ru.mipt.npm.gradle.mpp")
2021-03-07 19:22:30 +03:00
kotlin("jupyter.api")
}
description = "Jupyter api artifact for GDML rendering"
2021-03-10 21:58:28 +03:00
kotlin{
explicitApi = null
js{
2021-05-10 22:07:16 +03:00
useCommonJs()
2021-03-10 21:58:28 +03:00
browser {
webpackTask {
this.outputFileName = "js/gdml-jupyter.js"
}
2021-05-10 22:07:16 +03:00
commonWebpackConfig {
sourceMaps = false
cssSupport.enabled = false
}
2021-03-10 21:58:28 +03:00
}
binaries.executable()
}
afterEvaluate {
val jsBrowserDistribution by tasks.getting
tasks.getByName<ProcessResources>("jvmProcessResources") {
dependsOn(jsBrowserDistribution)
afterEvaluate {
from(jsBrowserDistribution)
}
}
}
sourceSets{
commonMain {
dependencies {
api(project(":visionforge-solid"))
}
}
jvmMain{
dependencies {
implementation(project(":visionforge-gdml"))
implementation(kotlin("script-runtime"))
}
}
jsMain {
dependencies {
api(project(":visionforge-threejs"))
2021-05-10 22:07:16 +03:00
implementation(project(":ui:ring"))
2021-03-10 21:58:28 +03:00
}
}
}
2021-03-07 19:22:30 +03:00
}
readme{
maturity = ru.mipt.npm.gradle.Maturity.EXPERIMENTAL
2021-03-10 21:58:28 +03:00
}