visionforge/dataforge-vis-spatial-js/build.gradle.kts

69 lines
1.8 KiB
Plaintext
Raw Normal View History

2019-03-08 11:55:01 +03:00
plugins {
id("scientifik.js")
2019-03-08 11:55:01 +03:00
id("kotlin-dce-js")
2019-07-14 22:08:15 +03:00
}
//val kotlinVersion: String by rootProject.extra
2019-03-08 11:55:01 +03:00
dependencies {
2019-07-08 22:25:08 +03:00
api(project(":dataforge-vis-spatial"))
2019-07-14 22:08:15 +03:00
api(project(":dataforge-vis-spatial-gdml"))
2019-07-08 22:25:08 +03:00
api("info.laht.threekt:threejs-wrapper:0.106-npm-2")
testCompile(kotlin("test-js"))
2019-03-08 11:55:01 +03:00
}
kotlin{
sourceSets["main"].dependencies{
api(npm("three","0.106.2"))
implementation(npm("@hi-level/three-csg"))
implementation(npm("style-loader"))
implementation(npm("element-resize-event"))
2019-03-08 11:55:01 +03:00
}
}
//
//configure<KotlinFrontendExtension> {
// downloadNodeJsVersion = "latest"
//
// configure<NpmExtension> {
// dependency("three","0.106.2")
// dependency("@hi-level/three-csg")
// dependency("style-loader")
// dependency("element-resize-event")
// devDependency("karma")
// }
//
// sourceMaps = true
//
// bundle<WebPackExtension>("webpack") {
// this as WebPackExtension
// bundleName = "main"
// contentPath = file("src/main/web")
// sourceMapEnabled = true
// //mode = "production"
// mode = "development"
// }
//}
//
//tasks {
// "compileKotlin2Js"(Kotlin2JsCompile::class) {
// kotlinOptions {
// metaInfo = true
// outputFile = "${project.buildDir.path}/js/${project.name}.js"
// sourceMap = true
// moduleKind = "commonjs"
// main = "call"
// kotlinOptions.sourceMapEmbedSources = "always"
// }
// }
//
// "compileTestKotlin2Js"(Kotlin2JsCompile::class) {
// kotlinOptions {
// metaInfo = true
// outputFile = "${project.buildDir.path}/js/${project.name}-test.js"
// sourceMap = true
// moduleKind = "commonjs"
// kotlinOptions.sourceMapEmbedSources = "always"
// }
// }
//}