Awesome KotlinBadge

Kotlin JS + typesafe jQuery

What it does

Example of how to easily compile Kotlin to javascript with typesafe access to the jQuery library. Allows using any other javascript libraries (when converted using ts2kt, see below). Packages everything together via browserify (require.js) for distribution.

Try it out

./dist.sh

open dist/index.html in your browser.

You should now see an animated textual counter.

Further plans

  • make use of npm and broswerify
  • integrate kotlinx

Extension

It should be easy (not tested yet) to extend this project with other javascript libraries:

  1. add npm-dependency to package.json

    if no npm-package is available you can also put the library’s *.js-file(s) to the web-directory

  2. find typescript-file and transform it via ts2kt

    possible source for typescript files

  3. use it via require(...)

Related Libraries

chrome-reactive-kotlin

Headless Chrome DevTools Protocol Client (RxJava2 + Kotlin)

Last updated 3 mins ago

kotlin-js-jquery

A small framework for writing client-side web-applications in Kotlin

Last updated 3 mins ago

klogging

Kotlin logging, both js and jvm

Last updated 3 mins ago

pixi-native

A native version of pixi

Last updated 3 mins ago

kudens

Develop browser games in Kotlin

Last updated 3 mins ago