🦕 Deno development with Kotlin.
$ ./gradlew deno
$ deno run --no-check build/deno/@appName@.js
implementation("org.jetbrains.kotlinx", "kotlinx-coroutines-core", "1.3.9")
import Kotlin from "https://jspm.dev/kotlin@1.4.0"
import KotlinxCoroutinesCore from "https://jspm.dev/kotlinx-coroutines-core@1.3.9"
//......
function require(moduleName) {
if (moduleName === 'kotlin') {
return Kotlin
} else if (moduleName === 'kotlinx-coroutines-core') {
return KotlinxCoroutinesCore;
} else {
return {};
}
}
$ ./gradlew -t deno
$ deno run --unstable --watch --allow-read --no-check build/deno/@appName@.js
Author: tgm-templates
Demo: https://crates.io/crates/tgm
Source Code: https://github.com/tgm-templates/deno-kotlin
#deno #nodejs #node #javascript #kotlin