coding-blocks-archives/KotlinNodeExpress

Name: KotlinNodeExpress

Owner: Coding Blocks Archives

Description: null

Created: 2018-03-21 22:01:23.0

Updated: 2018-03-21 22:01:37.0

Pushed: 2018-03-21 22:01:35.0

Homepage: null

Size: 17

Language: Kotlin

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

REQUIREMENTS
  1. NodeJS + NPM
  2. Java (JVM + JRE) 1.8
  3. Gradle
  4. Kotlin + Kotlinc
STEPS
1. Init Node
init
install kotlin
install express
2. Init Kotlin

New Gradle Kotlin DSL Build Script

p = "com.codingblocks"
ion = "0.1.0"

dscript {
ext.kotlin_version = '1.2.30'
repositories {
    mavenCentral()
}
dependencies {
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}


y plugin: 'kotlin2js'

sitories {
mavenCentral()


ndencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-js:$kotlin_version"


ileKotlin2Js.kotlinOptions {
moduleKind = "commonjs"
outputFile = "dist/kotlib.js"

3. Directories

dist

src/main/kotlin

4. ts2kt automator

Install it

install -g @jetbrains/ts2kt-automator

Get types


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.