Is there anyway to get the `org.jetbrains.kotlin.j...
# javascript
s
Is there anyway to get the
org.jetbrains.kotlin.js
gradle plugin to run
ts2kt
automatically? Does it do this already?
s
I don't know about ts2kt, but I know there is an open issue using dukat, here: https://youtrack.jetbrains.com/issue/KT-31703
Meaning I don't think that ts -> kt is fully supported yet in an automated sense.
s
Ah ok, thank you!
The plugin is woefully undocumented.
s
It might be. I know they are working on it from snippets I see now and then. https://kotlinlang.slack.com/archives/C0B8L3U69/p1564908899123000?thread_ts=1564780882.114700&cid=C0B8L3U69 The documentation is lacking, but I think that's because the js side is still under heavy development. FWIW, for me it's been good learning Kotlin to be forced to read through source code.
s
With kotlin 1.3.50 you can enable this experimental feature by adding the
kotlin.js.experimental.generateKotlinExternals=true
line into the
gradle.properties
file in a project root directory . Some more details here: https://blog.jetbrains.com/kotlin/2019/08/kotlin-1-3-50-released in the Dukat section.
s
@snrostov Unfortunately this doesn't work for me, due to what appears to be a Dukat bug. I've opened an issue on Youtrack (https://youtrack.jetbrains.com/issue/KT-33710), and there's a corresponding issue at Dukat's Github page: https://github.com/Kotlin/dukat/issues/105
🙏 1