mirror of
https://github.com/GayPizzaSpecifications/dough.git
synced 2026-11-04 10:22:20 +00:00
Fix nodejs support.
This commit is contained in:
20 files changed
+250
-35
No files matched your search
@@ -0,0 +1,13 @@
|
||||
plugins {
|
||||
dough_sample
|
||||
}
|
||||
|
||||
kotlin {
|
||||
sourceSets {
|
||||
commonMain {
|
||||
dependencies {
|
||||
implementation(project(":dough-fs"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
Hello World
|
||||
@@ -0,0 +1,9 @@
|
||||
import gay.pizza.dough.fs.PlatformFsProvider
|
||||
import gay.pizza.dough.fs.readString
|
||||
|
||||
fun main() {
|
||||
val currentWorkingDirectory = PlatformFsProvider.currentWorkingDirectory
|
||||
val helloTextPath = currentWorkingDirectory.resolve("hello.txt")
|
||||
val content = helloTextPath.readString()
|
||||
println(content)
|
||||
}
|
||||
Reference in new issue
Block a user