Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
soywiz committed Jul 26, 2024
1 parent c15907f commit 02c3522
Show file tree
Hide file tree
Showing 331 changed files with 18,483 additions and 18 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# korlibs-library-template
# korlibs-io
File renamed without changes.
17 changes: 17 additions & 0 deletions korlibs-io-nodejs/module.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
product:
type: lib
platforms: [jvm, js, wasm, android, linuxX64, linuxArm64, tvosArm64, tvosX64, tvosSimulatorArm64, macosX64, macosArm64, iosArm64, iosSimulatorArm64, iosX64, watchosArm64, watchosArm32, watchosDeviceArm64, watchosSimulatorArm64, mingwX64]
#platforms: [js]

apply: [ ../common.module-template.yaml ]

aliases:
- nonJs: [jvm, wasm, android, linuxX64, linuxArm64, tvosArm64, tvosX64, tvosSimulatorArm64, macosX64, macosArm64, iosArm64, iosSimulatorArm64, iosX64, watchosArm64, watchosArm32, watchosDeviceArm64, watchosSimulatorArm64, mingwX64]

dependencies:
- com.soywiz:korlibs-platform:6.0.0
- ../korlibs-io

test-dependencies:
- org.jetbrains.kotlinx:kotlinx-coroutines-test:1.9.0-RC
- com.soywiz:korlibs-time:6.0.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package korlibs.io.runtime.node

expect fun configureNodeJsTarget()
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package korlibs.io.runtime.node

import korlibs.io.*

actual fun configureNodeJsTarget() {
_jsRuntime = JsRuntimeNode
}

/*
actual object StandardPaths : StandardPathsBase {
override val cwd: String get() = when {
isNodeJs -> FS.realpathSync(process.cwd())
else -> "."
}
//override val executableFile: String get() = when {
// isNodeJs -> {
// console.log("argv", process.argv, process.argv0)
// console.log(Error())
// (process.argv[1] ?: null)?.unsafeCast<String>() ?: super.executableFile
// }
// else -> super.executableFile
//}
}
*/
Loading

0 comments on commit 02c3522

Please sign in to comment.