github varabyte/kobweb v0.11.1

latest releases: v0.24.0, v0.23.3, v0.23.2...
pre-release3 years ago

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 kotlin block to set up js and jvm configuration 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.
  • New notifyKobwebAbout[Frontend|Backend]CodeGeneratingTask utility 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 :kobwebGenFrontend and :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.

Don't miss a new kobweb release

NewReleases is sending notifications on new releases.