A fairly minor release -- just some misc. changes after the major v0.11.0 update landed.
I also updated the responsive example ($ kobweb create examples/responsive) to showcase a responsive side menu which gets hidden behind a button on mobile.
Frontend
- New modifier for the CSS float property
- New modifier for the CSS visibility property
Gradle
- New
configAsKobweb[Application|Library]utility methods, which can help remove boilerplate from your Kobweb project's gradle scripts.- Used in a
kotlinblock to set upjsandjvmconfiguration values that Kobweb expects. Looks like:
kotlin { configAsKobwebApplication(includeServer = true) commonMain { ... } jsMain { ... } jvmMain { ... } // <-- Excluded if includeServer = false }- All templates have been updated to use this approach, so you can refer to them if you want to migrate your own build scripts over.
- Used in a
- New
notifyKobwebAbout[Frontend|Backend]CodeGeneratingTaskutility methods, useful if you have a task in your own project that generates some code as a side effect that Kobweb should pick up on.- This used to be something you could accomplish by explicitly inserting your own task in front of
:kobwebGenFrontendand:kobwebGenBackend, but that was fragile as there aren't any guarantees that Kobweb Gradle plugins won't be updated in the future so this assumption is no longer true.
- This used to be something you could accomplish by explicitly inserting your own task in front of