Pizza Samples

This commit is contained in:
2023-02-17 10:15:42 -08:00
parent d9b02c847f
commit 36e680454e
13 changed files with 139 additions and 64 deletions

View File

@ -0,0 +1,20 @@
plugins {
dough_sample
}
kotlin {
js(IR) {
nodejs()
browser()
binaries.executable()
}
sourceSets {
commonMain {
dependencies {
implementation(project(":dough-core"))
}
}
}
}

View File

@ -0,0 +1,5 @@
import gay.pizza.dough.core.PlatformClock
fun main() {
println(PlatformClock.now().millisecondsSinceEpoch)
}

View File

@ -0,0 +1,13 @@
plugins {
dough_sample
}
kotlin {
sourceSets {
commonMain {
dependencies {
implementation(project(":dough-fs"))
}
}
}
}

View File

@ -0,0 +1,10 @@
import gay.pizza.dough.fs.PlatformFsProvider
import gay.pizza.dough.fs.walk
fun main() {
val currentWorkingDirectory = PlatformFsProvider.currentWorkingDirectory
for (item in currentWorkingDirectory.walk()) {
val relative = item.relativeTo(currentWorkingDirectory)
println(relative.fullPathString)
}
}