Dalinar
06/20/2017, 9:04 AMsrc=
and magically gets an out
folder to choose, how do I configure my kotlin javascript module to do that? (my out is located on another drive, I "Inherit project compile output path" in the module) I can't figure out the correct path to use in my src=
for my code to run (I get 404 not found errors in the browser) Do you think that intellij web server requires out to be in the same folder as the src folder?jasper
06/21/2017, 3:14 AMsdeleuze
06/22/2017, 8:50 PM.klib
is specifc to native so I guess it is not usable for Javascript ...bulwinkel
06/23/2017, 2:47 AMDalinar
06/23/2017, 7:15 AMpmiklos
06/24/2017, 4:33 AMclockworkant
06/24/2017, 9:18 PMDalinar
06/25/2017, 6:30 AMnoctarius
06/26/2017, 7:24 AManton.bannykh
06/26/2017, 2:37 PMDalinar
06/26/2017, 6:31 PMdamirb
06/27/2017, 3:34 PMgit clone <https://github.com/Kotlin/kotlin-fullstack-sample>
then gradlew build
fails with error:
npm ERR! notarget No matching version found for kotlin@1.1.1
tried deleting ~/.gradlew and ~/.npm but it doesn't help
it workd for me last week.. i'm on ubuntuDalinar
06/27/2017, 6:02 PM@nativeGetter
operator fun get(key: String): String? // use inline extension with body using dynamic
companion object : QUnit by definedExternally: QUnit { } // can't use delegate on external
fun begin(callback: `(details: `T$3`) -> Unit`) // unresolvable reference details
code here gives errors or deprecated warningsnatpryce
06/28/2017, 2:29 PMDalinar
06/29/2017, 9:06 AMJSON.stringify({ x: 5 }); // '{"x":5}'
in Kotlin ? it's the { x: 5}
I don't understand how to doDalinar
06/30/2017, 6:04 AMnatpryce
06/30/2017, 10:18 AMgaetan
06/30/2017, 1:46 PMprintln("Hello World")
results after DCE -> requirejs optimization -> http zip in a 10 Ko file. I find that very good.
Adding a line println(black)
using the previous colors we discussed, raise the size to 16 Ko. Removing lazy initializations gets it down to 13 Ko.👏🎉gbaldeck
06/30/2017, 3:46 PMtlaukkan
07/01/2017, 6:25 AMtlaukkan
07/03/2017, 7:23 AMnatpryce
07/03/2017, 9:33 AMkotlin
has version 1.1.0, but my package is built with 1.1.3.tlaukkan
07/03/2017, 1:03 PMtlaukkan
07/03/2017, 1:47 PMnatpryce
07/03/2017, 2:18 PMtlaukkan
07/03/2017, 4:28 PMtlaukkan
07/03/2017, 5:32 PMgravyivan
07/04/2017, 12:04 PMzeckson
07/04/2017, 12:51 PMprocess.argv
into my main
. I have following code:
fun main(args: Array<String>) {
val token = args[2]
}
Вut it transpiles to:
(function (_, Kotlin) {
'use strict';
function main(args) {
var token = args[2];
}
_.main_kand9s$ = main;
main([]);
Kotlin.defineModule('server', _);
return _;
}(module.exports, require('kotlin')));
I’m using a workaround like this currently:
fun main(args: Array<String>) {
val token = process.argv[2]
}
But maybe is there a better solution?gbaldeck
07/05/2017, 8:10 PM