Darryl Miles
03/03/2024, 4:18 AMDarryl Miles
03/04/2024, 4:57 AM[browser-example]$ find build/libs/ build/dist/
build/libs/
build/libs/kotlin-wasm-browser-example-metadata-1.0-SNAPSHOT.jar
build/libs/kotlin-wasm-browser-example-wasm-js-1.0-SNAPSHOT.klib
build/dist/
build/dist/wasmJs
build/dist/wasmJs/productionExecutable
build/dist/wasmJs/productionExecutable/kotlin-wasm-browser-example.js
build/dist/wasmJs/productionExecutable/index.html
build/dist/wasmJs/productionExecutable/kotlin-wasm-browser-example.js.map
build/dist/wasmJs/productionExecutable/kotlin-wasm-browser-example-wasm-js.wasm
It is not clear what purpose the *.klib has (maybe it is control information to allow composure of multiple project in some interoperable way)
It is not clear why the only JAR output is basically EMPTY
$ unzip -lv build/libs/kotlin-wasm-browser-example-metadata-1.0-SNAPSHOT.jar
Archive: build/libs/kotlin-wasm-browser-example-metadata-1.0-SNAPSHOT.jar
Length Method Size Cmpr Date Time CRC-32 Name
-------- ------ ------- ---- ---------- ----- -------- ----
0 Defl:N 2 0% 02-01-1980 00:00 00000000 META-INF/
25 Defl:N 27 -8% 02-01-1980 00:00 ee027fb2 META-INF/MANIFEST.MF
558 Defl:N 241 57% 02-01-1980 00:00 b2207399 META-INF/kotlin-project-structure-metadata.json
-------- ------- --- -------
583 270 54% 3 files
Darryl Miles
03/04/2024, 5:00 AMDarryl Miles
03/04/2024, 5:03 AMsrc/commonMain
and src/wasmJsMain
exist, demonstrating their respective design traits
Not a single example of a test case using src/commonTest
and/or src/wasmJsTest