Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .DS_Store
Binary file not shown.
14 changes: 12 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,12 @@ kotlin {
macosArm64()
// Web
js {
browser()
nodejs()
browser {
binaries.executable()
}
nodejs {
binaries.executable()
}
}
wasmJs()
// Dependencies
Expand All @@ -56,6 +60,12 @@ kotlin {
}
}

val jsMain by getting {
dependencies {
// Add your dependencies here
}
}

val commonTest by getting {
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.9.0")
Expand Down
1 change: 0 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
kotlin.js.compiler=ir
2,835 changes: 2,835 additions & 0 deletions kotlin-js-store/yarn.lock

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions src/commonMain/kotlin/dev/snipme/highlights/Highlights.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.cancelChildren
import kotlinx.coroutines.ensureActive
import kotlinx.coroutines.launch
import kotlin.js.JsExport

@JsExport
fun greet(name: String): String {
return "Hello, $name!"
}

class Highlights private constructor(
private var code: String,
Expand Down

This file was deleted.

Loading