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
}
description = "Jupyter api artifact for GDML rendering"
2021-07-10 16:51:57 +03:00
kotlin {
2021-03-10 21:58:28 +03:00
explicitApi = null
2021-07-10 16:51:57 +03:00
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)
2021-07-10 16:51:57 +03:00
from(jsBrowserDistribution)
2021-03-10 21:58:28 +03:00
}
}
2021-07-10 16:51:57 +03:00
sourceSets {
2021-03-10 21:58:28 +03:00
commonMain {
dependencies {
api(project(":visionforge-solid"))
}
}
2021-07-10 16:51:57 +03:00
jvmMain {
2021-03-10 21:58:28 +03:00
dependencies {
implementation(project(":visionforge-gdml"))
}
}
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
}
2021-07-10 16:51:57 +03:00
kscience {
2021-09-14 16:30:18 +03:00
jupyterLibrary("space.kscience.visionforge.gdml.jupyter.GdmlForJupyter")
}
2021-07-10 16:51:57 +03:00
readme {
2021-03-07 19:22:30 +03:00
maturity = ru.mipt.npm.gradle.Maturity.EXPERIMENTAL
2021-09-14 16:30:18 +03:00
}