[JS] Migrate tests onto IR compiler with outputDir API instead of outputFile
^KT-61117 fixed
This commit is contained in:
committed by
Space Team
parent
e50f6e6bca
commit
08e3cb300a
+2
-1
@@ -21,7 +21,8 @@ dependencies {
|
||||
}
|
||||
|
||||
tasks.named("compileKotlinJs", Kotlin2JsCompile) {
|
||||
it.kotlinOptions.outputFile = "${buildDir}/kotlin2js/main/module.js"
|
||||
it.destinationDirectory = new File(buildDir, "kotlin2js/main")
|
||||
it.kotlinOptions.moduleName = "module"
|
||||
it.kotlinOptions.freeCompilerArgs += ["-Xir-produce-klib-dir", "-Xir-only"]
|
||||
}
|
||||
|
||||
|
||||
+2
-1
@@ -29,7 +29,8 @@ artifacts {
|
||||
|
||||
def outDir = "${buildDir}/kotlin2js/main/"
|
||||
|
||||
compileKotlin2Js.kotlinOptions.outputFile = outDir + "test-library.js"
|
||||
compileKotlin2Js.destinationDirectory = new File(outDir)
|
||||
compileKotlin2Js.kotlinOptions.moduleName = "test-library"
|
||||
|
||||
compileKotlin2Js.kotlinOptions.freeCompilerArgs += ["-Xir-produce-klib-dir"]
|
||||
|
||||
|
||||
+2
-1
@@ -21,7 +21,8 @@ dependencies {
|
||||
}
|
||||
|
||||
compileKotlin2Js.kotlinOptions.sourceMap = true
|
||||
compileKotlin2Js.kotlinOptions.outputFile = "${projectDir}/web/js/app.js"
|
||||
compileKotlin2Js.destinationDirectory = new File(projectDir, "web/js")
|
||||
compileKotlin2Js.kotlinOptions.moduleName = "app"
|
||||
compileKotlin2Js.kotlinOptions.suppressWarnings = true
|
||||
compileKotlin2Js.kotlinOptions.verbose = true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user