blob: c1897ca749ac6b1ed9c0a266affc98fa86d594e2 [file] [log] [blame]
/*
* Copyright 2016-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
// Platform-specific configuration to compile JS modules
import org.jetbrains.kotlin.gradle.dsl.KotlinJsCompile
plugins {
kotlin("js")
}
dependencies {
testImplementation(kotlin("test-js"))
}
kotlin {
js(LEGACY) {
moduleName = project.name.removeSuffix("-js")
}
sourceSets {
main {
kotlin.srcDirs("src")
resources.srcDirs("resources")
}
test {
kotlin.srcDirs("test")
resources.srcDirs("test-resources")
}
}
}
tasks.withType<KotlinJsCompile> {
kotlinOptions {
moduleKind = "umd"
sourceMap = true
metaInfo = true
}
}