Hey folks! <https://play.kotlinlang.org/> now with...
# javascript
d
Hey folks! https://play.kotlinlang.org/ now with JS IR support! Thanks a lot to @Ilya Goncharov [JB] 👍
👍 13
👍🏼 2
👏 8
@turansky @altavir FYI 😃
💥 3
a
Thanks a lot. And thanks @Viktor Noskin [JB], I think (at least he took the issue).
v
@altavir no, not me 😃 (I just changed the project for issue) Thanks to @Ilya Goncharov [JB]!
a
OK then
a
Nice! Is it possible to see what the generated TS definitions look like from there too?
1
🚫 1
i
Not yer, but it is great feature request, thanks Could you please create issue on youtrack?
d
We already have this task in Kotlin Website roadmap 🙃
👌 2
v
Is the code for that playground website open sourced by any chance? :-)
d
You can also create and share your own runnable code example with “share” button in Kotlin Playground
❤️ 3
v
I'm aware of that project, what I meant was the backend and the playground site with selectable version and so on, not only that embeddable component. :-)
d
v
Ah, nice, thanks, didn't expect it in a personal account but searched JB repos. Now I see that it is linked in the playground component repo, stupid me. And the playground website, including version selection and so on? Is that part of
JetBrains/kotlin-web-site
?
d
Yes, it is.
v
Nice, will have a look, thanks
c
is it possible to use libraries inside of playground? i am maintaining an open source kotlin library (currently for JVM, KotlinJS is planed) and think it would be pretty nice to have prepared examples / code snippets on how to use the library via playground in the docs. or would i need to run my own fork of kotlin-compiler-server and add my library their as described here https://github.com/AlexanderPrendota/kotlin-compiler-server#how-to-add-your-dependencies-to-kotlin-compiler-books ? if so, how to make the playground use my own compiler-server
1
d
https://github.com/JetBrains/kotlin-playground/issues/119 - Alex left a comment under the issue
a
Is the code for that playground website open sourced by any chance? 🙂
Hey, @Vampire. Unfortunately, I can not open the source code of Kotlin Play, because it contains internal JetBrains UI components based on ReactJS. For the server -- yes, Roman provided you a correct link. If you need some technical information regarding the projects feel free to write me a message 🙂
v
Oh, so it is not part of the
JetBrains/kotlin-web-site
repo, that explains why I didn't find it. 😄 Thanks for the offer, I might come back to that. 🙂
👍 1