i have a task that copys the generated `.js` and `...
# gradle
t
i have a task that copys the generated
.js
and
.meta.js
files from the
js()
target somewhere else for some reason. with the original groovy i could acces this folder with
compileKotlinJs.destinationDir
. How can i do that with kotlin dsl?
s
Cc @snrostov.
t
project.tasks.getByPath("compileKotlinJs").let { (it as Kotlin2JsCompile).destinationDir }
seems to be the solution - but thats ugly compared to the groovy version, of course 🙈
s
or
kotlin.targets.js.compilations.main.compileKotlinTask.destinationDir