Skip to content

Commit

Permalink
- [Versions] Doodle -> 0.10.1
Browse files Browse the repository at this point in the history
- [Build] Allow Node download
- [Build] Increase RAM
  • Loading branch information
pusolito committed May 7, 2024
1 parent b328136 commit cb4102e
Show file tree
Hide file tree
Showing 22 changed files with 40 additions and 37 deletions.
1 change: 0 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ subprojects {
}

rootProject.plugins.withType<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin> {
rootProject.the<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension>().download = false
rootProject.the<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension>().nodeVersion = "16.0.0"
rootProject.the<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension>().versions.webpackCli.version = "4.10.0"
rootProject.the<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension>().versions.webpack.version = "5.74.0"
Expand Down
43 changes: 23 additions & 20 deletions buildSrc/src/main/kotlin/Common.kt
Original file line number Diff line number Diff line change
Expand Up @@ -44,26 +44,29 @@ fun KotlinMultiplatformExtension.wasmJsTargets(executable: Boolean = false) {
}
if (executable) {
binaries.executable()

if (project.gradle.startParameter.taskNames.find { it.contains("wasmJsBrowserProductionWebpack") } != null) {
applyBinaryen {
binaryenArgs = mutableListOf(
"--enable-nontrapping-float-to-int",
"--enable-gc",
"--enable-reference-types",
"--enable-exception-handling",
"--enable-bulk-memory",
"--inline-functions-with-loops",
"--traps-never-happen",
"--fast-math",
"--closed-world",
"--metrics",
"-O3", "--gufa", "--metrics",
"-O3", "--gufa", "--metrics",
"-O3", "--gufa", "--metrics",
)
}
}
// applyBinaryen {
// binaryenArgs += "-g" // keep original names
// }

// if (project.gradle.startParameter.taskNames.find { it.contains("wasmJsBrowserProductionWebpack") } != null) {
// applyBinaryen {
// binaryenArgs = mutableListOf(
// "--enable-nontrapping-float-to-int",
// "--enable-gc",
// "--enable-reference-types",
// "--enable-exception-handling",
// "--enable-bulk-memory",
// "--inline-functions-with-loops",
// "--traps-never-happen",
// "--fast-math",
// "--closed-world",
// "--metrics",
// "-O3", "--gufa", "--metrics",
// "-O3", "--gufa", "--metrics",
// "-O3", "--gufa", "--metrics",
// )
// }
// }
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion docs/calculator/CalculatorRunner.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/calculator_wasm/CalculatorRunner.js

Large diffs are not rendered by default.

Binary file not shown.
2 changes: 1 addition & 1 deletion docs/contacts/ContactsRunner.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/contacts_wasm/ContactsRunner.js

Large diffs are not rendered by default.

Binary file modified docs/contacts_wasm/doodle-tutorials-ContactsRunner-wasm-js.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/photos/PhotosRunner.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/photos_wasm/PhotosRunner.js

Large diffs are not rendered by default.

Binary file modified docs/photos_wasm/doodle-tutorials-PhotosRunner-wasm-js.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/tabstrip/TabStripRunner.js

Large diffs are not rendered by default.

Binary file modified docs/tabstrip_wasm/doodle-tutorials-TabStripRunner-wasm-js.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/timedcards/TimedCardsRunner.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/timedcards_wasm/TimedCardsRunner.js

Large diffs are not rendered by default.

Binary file not shown.
2 changes: 1 addition & 1 deletion docs/todo/TodoRunner.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/todo_wasm/TodoRunner.js

Large diffs are not rendered by default.

Binary file modified docs/todo_wasm/doodle-tutorials-TodoRunner-wasm-js.wasm
Binary file not shown.
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
version = 0.10.0
group = io.nacular.doodle-tutorials
version = 0.10.1
group = io.nacular.doodle-tutorials

org.gradle.jvmargs = -Xmx1024m
org.gradle.jvmargs = -Xmx2048m
kotlin.mpp.stability.nowarn = true
3 changes: 2 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
kotlinVersion = { strictly = "1.9.22" }
coroutinesVersion = { strictly = "1.8.0" }
kodeinVersion = { strictly = "7.21.1" }
doodleVersion = { strictly = "0.10.0" }
doodleVersion = { strictly = "0.10.1" }
slf4jVersion = { strictly = "2.0.9" }
mockkVersion = { strictly = "1.13.7" }
jupiterVersion = { strictly = "5.10.0" }
Expand Down Expand Up @@ -32,6 +32,7 @@ logback-classic = { module = "ch.qos.logback:logback-classic",
ktor-serialization = { module = "io.ktor:ktor-client-serialization", version.ref = "ktorVersion" }
serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "serializationVersion" }
coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "coroutinesVersion" }
date-time = { module = "org.jetbrains.kotlinx:kotlinx-datetime", version.ref = "dateTimeVersion" }

[bundles]
ktor-client = ["ktor-client-core", "ktor-client-content", "ktor-serialization-json"]
Expand Down
2 changes: 1 addition & 1 deletion site/src/components/DocApps.js

Large diffs are not rendered by default.

0 comments on commit cb4102e

Please sign in to comment.