You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
731 B
33 lines
731 B
/*
|
|
* Copyright 2016-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
|
|
*/
|
|
|
|
// Platform-specific configuration to compile JS modules
|
|
|
|
apply plugin: 'org.jetbrains.kotlin.js'
|
|
|
|
dependencies {
|
|
testImplementation "org.jetbrains.kotlin:kotlin-test-js:$kotlin_version"
|
|
}
|
|
|
|
kotlin {
|
|
js(LEGACY) {
|
|
moduleName = project.name - "-js"
|
|
}
|
|
|
|
sourceSets {
|
|
main.kotlin.srcDirs = ['src']
|
|
test.kotlin.srcDirs = ['test']
|
|
main.resources.srcDirs = ['resources']
|
|
test.resources.srcDirs = ['test-resources']
|
|
}
|
|
}
|
|
|
|
tasks.withType(compileKotlinJs.getClass()) {
|
|
kotlinOptions {
|
|
moduleKind = "umd"
|
|
sourceMap = true
|
|
metaInfo = true
|
|
}
|
|
}
|