Ray Rahke
03/10/2024, 5:20 AMsrc/jsMain/Kotlin
How can I change it? Here are the contents of my gradle file
plugins {
kotlin("multiplatform") version "1.9.22"
}
group = "org.example"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
kotlin {
jvmToolchain(21)
sourceSets {
commonTest {
dependencies {
implementation(kotlin("test"))
}
}
}
js {
browser {
commonWebpackConfig {
outputFileName = "main.js"
}
}
binaries.executable()
}
}
ephemient
03/10/2024, 5:33 AMephemient
03/10/2024, 5:35 AMkotlin {
sourceSets {
val jsMain by getting {
kotlin.srcDir("additional/kotlin/sources")
resources.srcDir("additional/resources")
but why??Ray Rahke
03/10/2024, 6:00 AMbut why??Because this is for teaching children who don't need to know about these distinctions that will just function as visual noise that scares and confuses them
Ray Rahke
03/10/2024, 6:00 AMsrc/
ephemient
03/10/2024, 6:00 AMephemient
03/10/2024, 6:00 AMephemient
03/10/2024, 6:01 AMRay Rahke
03/10/2024, 8:06 AMephemient
03/10/2024, 8:11 AMsrcDirs
like above. but I don't think breaking the norms is worth it. every language has its expected structure, even simple scripting languages once you get beyond single-file projects.Ray Rahke
03/10/2024, 8:12 AMRay Rahke
03/10/2024, 8:12 AMRay Rahke
03/10/2024, 8:12 AMRay Rahke
03/10/2024, 8:12 AMephemient
03/10/2024, 8:13 AMRay Rahke
03/10/2024, 8:13 AMRay Rahke
03/10/2024, 8:14 AMRay Rahke
03/10/2024, 8:14 AMRay Rahke
03/10/2024, 8:14 AMRay Rahke
03/10/2024, 8:14 AMRay Rahke
03/10/2024, 8:15 AMRay Rahke
03/10/2024, 8:15 AMRay Rahke
03/10/2024, 8:16 AMRay Rahke
03/10/2024, 8:17 AMkotlin {
sourceSets {
val jsMain by getting {
kotlin.srcDir("src/*")
js.srcDir("src/jsstuff/*")
resources.srcDir("resources/*")
test.srcDir("test/*")
Ray Rahke
03/10/2024, 8:17 AMRay Rahke
03/10/2024, 8:19 AMRay Rahke
03/10/2024, 8:19 AM