Skip to content

Commit

Permalink
adding experimental es support for kotlin js
Browse files Browse the repository at this point in the history
  • Loading branch information
robertfmurdock committed Jan 27, 2025
1 parent a6c3af0 commit 27ebb21
Show file tree
Hide file tree
Showing 15 changed files with 32 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ plugins {
kotlin {
js {
useCommonJs()
compilerOptions {
target = "es2015"
}
binaries.executable()
}
@OptIn(ExperimentalKotlinGradlePluginApi::class)
Expand Down
5 changes: 4 additions & 1 deletion libraries/auth0-management/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ plugins {
}

kotlin {
js { nodejs() }
js {
nodejs()
compilerOptions { target = "es2015" }
}
jvm()
}

Expand Down
5 changes: 4 additions & 1 deletion libraries/logging/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ plugins {
}
kotlin {
jvm()
js { nodejs() }
js {
nodejs()
compilerOptions { target = "es2015" }
}
}

dependencies {
Expand Down
1 change: 1 addition & 0 deletions libraries/model/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ kotlin {
js {
nodejs()
useCommonJs()
compilerOptions { target = "es2015" }
}
}
dependencies {
Expand Down
4 changes: 3 additions & 1 deletion libraries/repository/compound/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ plugins {
}
kotlin {
jvm()
js { nodejs() }
js {
nodejs()
}
}
dependencies {
commonMainApi(project(":libraries:model"))
Expand Down
1 change: 1 addition & 0 deletions libraries/repository/core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ kotlin {
js {
nodejs()
useCommonJs()
compilerOptions { target = "es2015" }
}
}
dependencies {
Expand Down
3 changes: 2 additions & 1 deletion libraries/repository/memory/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ kotlin {
js {
nodejs()
useCommonJs()
compilerOptions { target = "es2015" }
}
}

Expand All @@ -28,4 +29,4 @@ dependencies {
"jvmTestImplementation"("org.junit.jupiter:junit-jupiter-engine")

"jsTestImplementation"("com.zegreatrob.testmints:async")
}
}
3 changes: 2 additions & 1 deletion libraries/repository/validation/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ kotlin {
js {
nodejs()
useCommonJs()
compilerOptions { target = "es2015" }
}
}

Expand All @@ -23,4 +24,4 @@ dependencies {
"jvmMainApi"(kotlin("reflect"))
"jvmMainImplementation"(kotlin("reflect"))
"jvmMainImplementation"("org.jetbrains.kotlin:kotlin-test-junit")
}
}
3 changes: 2 additions & 1 deletion libraries/stub-model/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ kotlin {
js {
nodejs()
useCommonJs()
compilerOptions { target = "es2015" }
}
}

dependencies {
commonMainImplementation(project(":libraries:model"))
commonMainApi("com.benasher44:uuid")
}
}
1 change: 1 addition & 0 deletions libraries/test-action/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ kotlin {
js {
nodejs()
useCommonJs()
compilerOptions { target = "es2015" }
}
jvm()
}
Expand Down
1 change: 1 addition & 0 deletions libraries/test-logging/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ kotlin {
js {
nodejs()
useCommonJs()
compilerOptions { target = "es2015" }
binaries.executable()
}
}
Expand Down
1 change: 1 addition & 0 deletions scripts/export/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ plugins {
kotlin {
jvm()
js {
compilerOptions { target = "es2015" }
nodejs {
binaries.executable()
}
Expand Down
1 change: 1 addition & 0 deletions scripts/import/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ plugins {
kotlin {
jvm()
js {
compilerOptions { target = "es2015" }
nodejs {
binaries.executable()
}
Expand Down
4 changes: 3 additions & 1 deletion server/actionz/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ plugins {
id("com.zegreatrob.testmints.action-mint")
}
kotlin {
js { nodejs() }
js {
nodejs()
}
}
dependencies {
"jsMainApi"(project(":libraries:repository:core"))
Expand Down
4 changes: 3 additions & 1 deletion server/cache-repository/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ plugins {
id("com.zegreatrob.coupling.plugins.mp")
}
kotlin {
js { nodejs() }
js {
nodejs()
}
}
dependencies {
"jsMainApi"(project(":libraries:repository:core"))
Expand Down

0 comments on commit 27ebb21

Please sign in to comment.