I have a backend project in kotlin that i want to ...
# javascript
j
I have a backend project in kotlin that i want to convert to Javascript. Is there an out of the box kotiln to js compiler I can use?
🤨 3
n
May I ask: why? If you plan to run it with node.js, it will probably need a huge refactoring (rewrite?) anyway...
j
I'll be running it on vertx. For projects I'll give to others I want to have a typescript base
n
Vert.x supports the JVM as a deployment target, why is JS required?
j
Because when I work on projects for people I'd rather give them a typescript code base than a kotlin one
😕 1
2
@napperley any questions I can answer?
n
Why do you prefer to use TypeScript for backend development projects instead of Kotlin where it is more suitable?
j
Because this is a project I'm going to give someone else. I believe they'll have an easier time finding people to work in typescript than in kotlin
😕 1
So going back to my question, is there a simple way to transpile it to JavaScript?
n
If you are talking about converting a Kotlin JVM project to a Kotlin JS one then no.
Kotlin JS has its own transpiler (generates JS files) however it only works on Kotlin JS projects, not Kotlin JVM ones.
j
Gotcha
Thanks!