Files
2020-07-17 16:02:44 +03:00

52 lines
1006 B
Groovy
Vendored

plugins {
id 'org.jetbrains.kotlin.multiplatform' version 'KOTLIN_VERSION'
}
group = 'testGroupId'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
maven {
url 'https://dl.bintray.com/kotlin/kotlin-dev'
}
}
kotlin {
js('nodeJs') {
nodejs {
binaries.executable()
}
}
js('browser') {
browser {
binaries.executable()
webpackTask {
cssSupport.enabled = true
}
runTask {
cssSupport.enabled = true
}
testTask {
useKarma {
useChromeHeadless()
webpackConfig.cssSupport.enabled = true
}
}
}
}
sourceSets {
nodeJsMain {
}
nodeJsTest {
}
browserMain {
}
browserTest {
dependencies {
implementation kotlin('test-js')
}
}
}
}