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

60 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 {
2022-01-02 14:28:24 +03:00
implementation(projects.visionforgeSolid)
2022-01-07 12:29:43 +03:00
implementation(projects.jupyter)
2021-03-10 21:58:28 +03:00
}
}
2021-07-10 16:51:57 +03:00
jvmMain {
2021-03-10 21:58:28 +03:00
dependencies {
2022-01-02 14:28:24 +03:00
implementation(projects.visionforgeGdml)
2021-03-10 21:58:28 +03:00
}
}
jsMain {
dependencies {
2022-01-02 14:28:24 +03:00
implementation(projects.visionforgeThreejs)
implementation(projects.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
}