hellman
08/27/2019, 7:10 AMrootProject.kotlinNodeJs.versions.dukat.version = "<VERSION>"
Big Chungus
08/27/2019, 9:49 AMfcosta
08/27/2019, 12:12 PMconfig.output.filename
property in webpack.config.js
auto generated file changed in the kotlin JS 1.3.50. Is there any way to customize it?
config.entry.push("/Users/felipecosta/github/chat-app/build/js/packages/chatapp-frontend/kotlin/chatapp-frontend.js");
config.output = {
path: "/Users/felipecosta/github/chat-app/frontend/build/distributions",
filename: "frontend-1.0-SNAPSHOT.js"
};
spierce7
08/27/2019, 5:44 PMkotlin-multiplatform
plugin, and I’ve noticed that my js tests aren’t running on 1.3.50. Is there anything special I need to do to make them run?bmjav
08/28/2019, 7:41 PMPatrick Jackson
08/29/2019, 3:35 PMPatrick Jackson
08/30/2019, 3:28 PMPatrick Jackson
08/30/2019, 6:12 PMJuanoterocas
08/31/2019, 7:57 PMJuanoterocas
09/01/2019, 7:05 PMrequire("css/normalize.css")
and require("./css/normalize.css")
but i'm getting : Module not found: Error: Can't resolve 'css/normalize.css' in '/home/devquilla/repository/ServerCPSVertx/WalletCPS/dashboard/build/kotlin-js-min/main'
@ ./dashboard.js 2777:4-32Tristan Caron
09/02/2019, 3:38 PMERROR in ./kotlin/sample1.js
Module not found: Error: Can't resolve 'kotlin-react' in '/Users/user/IdeaProjects/project/build/js/packages/project/kotlin'
@ ./kotlin/project.js 3:4-97
@ multi ./kotlin/project.js source-map-support/browser-source-map-support.js
I guess this not integrated in my bundle. How can I do so?Svyatoslav Kuzmich [JB]
09/02/2019, 9:38 PMjw
09/03/2019, 5:55 PMbasher
09/03/2019, 11:33 PMSam Garfinkel
09/04/2019, 1:46 PMthana
09/04/2019, 3:42 PMlong sententces with blanks as test names
. As this is not valid in javascript wie use @JsName("testN")
annotations. but this still tedious. is there a way to autogenerate the js functionname for test functions?Nicholas Bilyk
09/04/2019, 8:14 PMSam Garfinkel
09/05/2019, 2:39 PMRComponent.setState
(from the Kotlin react wrappers) from a coroutine? I haven't seen any examples of react/coroutine integration.mp
09/05/2019, 3:01 PMSam Garfinkel
09/05/2019, 5:38 PMimplementation("org.jetbrains:kotlin-react:16.9.0-pre.83-kotlin-1.3.50")
I'm getting Module not found: Error: Can't resolve 'react'
Sam Garfinkel
09/05/2019, 5:47 PMSoren Valle
09/06/2019, 12:21 AMclass JsonObject {
val obj = js("({})")
infix fun <T : Any> String.l(other: T) {
obj[this] = other
}
}
fun jo(builder: JsonObject.() -> Unit): Any {
return JsonObject().apply(builder).obj as Any
}
fun main() {
val test = jo {
"this" l "that"
"this other" l 1
"user" l jo {
"first_name" l "jane"
"last_name" l "doe"
}
}
}
Soren Valle
09/07/2019, 1:20 AMfunctionProperty
? If so how?
external interface SomeInterface {
var functionProperty: (param1: Type, param2: OtherType) -> ReturnValue
var functionProperty: (param1: Type) -> ReturnValue
var functionProperty: () -> ReturnValue
}
Sam Garfinkel
09/09/2019, 3:21 PMFoo({...})
)?altavir
09/10/2019, 12:09 PMexternal interface JQuery {
fun fancytree(options: FancytreeOptions = definedExternally /* null */): Fancytree
fun fancytree(option: String? = definedExternally /* null */, vararg rest: Any): Any
}
It is obvious that I can't use it with kotlin jquery since this JQuery and jQuery in the bindings are two different things. How can I make it right?mp
09/10/2019, 2:19 PMSam Garfinkel
09/10/2019, 2:52 PMrequires
with a single wrapper file? For example, the swagger-ui
, which is bundled with swagger-ui/dist/swagger.css
. The CSS should always be required whenever the swagger-ui
export is required. AFAIK you can only have a single @file:JsModule(...)
annotation.Sam Garfinkel
09/10/2019, 4:50 PMdynamic
, but just wanted to confirm.Jens C.
09/12/2019, 8:12 AMmp
09/12/2019, 12:03 PMrequire('webexteision-polyfill')
in kotlinjs?mp
09/12/2019, 12:03 PMrequire('webexteision-polyfill')
in kotlinjs?Big Chungus
09/12/2019, 12:04 PMmp
09/12/2019, 12:13 PMimplementation(kotlin("stdlib-js"))
it import for me require(val: boolean)
function that assert val and throw exception if false 🤔 not same as require
some js moduleBig Chungus
09/12/2019, 12:13 PMmp
09/12/2019, 12:13 PMBig Chungus
09/12/2019, 12:21 PMmp
09/12/2019, 12:27 PMSam Garfinkel
09/12/2019, 1:46 PMexternal fun require(module: String): dynamic = definedExternally
= definedExternally
might even be unecessary tbhBig Chungus
09/12/2019, 1:48 PM= definedExternally
is not needed here as it's a function. It's meant to be used for variablesSam Garfinkel
09/12/2019, 1:49 PMBig Chungus
09/12/2019, 1:49 PMSam Garfinkel
09/12/2019, 1:50 PMBig Chungus
09/12/2019, 1:50 PMturansky
09/12/2019, 6:29 PMES6
npm dependencies also marked as external
in webpack