generated from korlibs/korlibs-library-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
331 changed files
with
18,483 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
# korlibs-library-template | ||
# korlibs-io |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
3 changes: 3 additions & 0 deletions
3
korlibs-io-nodejs/src/korlibs/io/runtime/node/ConfigureNodeJsTarget.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package korlibs.io.runtime.node | ||
|
||
expect fun configureNodeJsTarget() |
25 changes: 25 additions & 0 deletions
25
korlibs-io-nodejs/src@js/korlibs/io/runtime/node/ConfigureNodeJsTarget.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
//} | ||
} | ||
*/ |
Oops, something went wrong.