33 lines
626 B
Groovy
Vendored
33 lines
626 B
Groovy
Vendored
group 'Again'
|
|
version '1.0-SNAPSHOT'
|
|
|
|
buildscript {
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50")
|
|
}
|
|
}
|
|
|
|
apply plugin: 'kotlin2js'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
compile "org.jetbrains.kotlin:kotlin-stdlib-js:1.3.50"
|
|
}
|
|
|
|
compileKotlin2Js {
|
|
kotlinOptions.sourceMap = true
|
|
kotlinOptions.freeCompilerArgs = ["-module-kind", "plain", "-main", "callMain"]
|
|
}
|
|
|
|
compileTestKotlin2Js {
|
|
kotlinOptions.apiVersion = "1.0"
|
|
kotlinOptions.freeCompilerArgs = ["-module-kind", "umd", "-main", "callTest"]
|
|
}
|