hello, was looking for pointers in creating kotlin...
# javascript
y
hello, was looking for pointers in creating kotlin wrappers for npm libraries. Any guidance in this direction is appreciated!
r
y
thanks.. are. there. ways to automatically create the wrapper code?
r
But it doesn't work reliably and looks like not maintained anymore.
y
how are the kotlin-wrappers in the kotlin-wrapper library generated? There seems to be instances of autocode generation in there?https://github.com/JetBrains/kotlin-wrappers
r
Perhaps @turansky can answer your question.
t
In Kotlin Wrappers we use Karakum
You can find plugins in
karakum
subfolder.
Now it's JS-code. Migration on Kotlin - under discussion. cc @Sergei Grishchenko
y
thanks, I am able to generate the kotlin wrapper using karakum, however the generated code does not compile. Error inclues it gives unresolved references to “Promise”, “js.Core”..
t
Looks like you missed dependency on
kotlin-js
from Kotlin Wrappers
y
thanks, yes was. missing that dependency