Git Product home page Git Product logo

ttk's Introduction

Typescript to Kotlin

Command line and Intellij IDEA plugin to convert a Typescript file or project to Kotlin/Js

How it works

It uses the tool karakum to convert a Typescript file or project to Kotlin/Js

Makes a scan of all typescript files, creates a list of the files and calls the tool to convert the code

The generated kotlin code may not be "as you would use it" but is a good approximation that you can then copy/paste and adapt to what you need

There is no distribution, so you'll need to build either of the modules (command-line or plugin)

Only works on mac. Can be modified to work in Windows or linux as well (because of the commands used and compose dependencies)

Command line

It's a kotlin jvm command line application. Just build as any other kotlin project

You can call

ttk generate -i path/to/my/file/or/folder

Arguments:

-i -> Input file or directory (required)
-o -> Output file or directory (optional)
-w -> Working directory (optional)

Plugin

Uses Compose Multiplatform for the UI

You can run the "Run Plugin" configuration to run the plugin in a sandbox or build as any other Intellij Plugin

To install it in your normal workspace, you need to create the distribution as any other Intellij Plugin

Light Theme

light theme

Dark Theme

dark theme

ttk's People

Contributors

waveduke avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.