Skip to content

Commit

Permalink
Kobweb 0.19.0 [no ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Luki120 committed Aug 15, 2024
1 parent c044e66 commit bd451bc
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
build/
.gradle/
.idea/
.kotlin/
kotlin-js-store/
/site/.kobweb/*
!/site/.kobweb/conf.yaml
.DS_Store
kotlin-js-store
4 changes: 4 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
plugins {
alias(libs.plugins.kotlin.multiplatform) apply false
}

subprojects {
repositories {
mavenCentral()
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.gradle.configuration-cache=true
10 changes: 6 additions & 4 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
[versions]
jetbrains-compose = "1.6.2"
kobweb = "0.18.3-SNAPSHOT"
kotlin = "1.9.23"
jetbrains-compose = "1.6.11"
kobweb = "0.19.0"
kotlin = "2.0.10"

[libraries]
compose-html-core = { module = "org.jetbrains.compose.html:html-core", version.ref = "jetbrains-compose" }
compose-runtime = { module = "org.jetbrains.compose.runtime:runtime", version.ref = "jetbrains-compose" }
kobweb-api = { module = "com.varabyte.kobweb:kobweb-api", version.ref = "kobweb" }
kobweb-core = { module = "com.varabyte.kobweb:kobweb-core ", version.ref = "kobweb" }
kobweb-silk = { module = "com.varabyte.kobweb:kobweb-silk", version.ref = "kobweb" }
Expand All @@ -12,7 +14,7 @@ silk-icons-fa = { module = "com.varabyte.kobwebx:silk-icons-fa", version.ref = "
silk-icons-mdi = { module = "com.varabyte.kobwebx:silk-icons-mdi", version.ref = "kobweb" }

[plugins]
jetbrains-compose = { id = "org.jetbrains.compose", version.ref = "jetbrains-compose" }
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
kobweb-application = { id = "com.varabyte.kobweb.application", version.ref = "kobweb" }
kobweb-library = { id = "com.varabyte.kobweb.library", version.ref = "kobweb" }
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
4 changes: 2 additions & 2 deletions site/.kobweb/conf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ server:
files:
dev:
contentRoot: "build/processedResources/js/main/public"
script: "build/dist/js/developmentExecutable/website.js"
script: "build/kotlin-webpack/js/developmentExecutable/website.js"
prod:
script: "build/dist/js/productionExecutable/website.js"
script: "build/kotlin-webpack/js/productionExecutable/website.js"
siteRoot: ".kobweb/site"

port: 8080
14 changes: 10 additions & 4 deletions site/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import com.varabyte.kobweb.gradle.application.util.configAsKobwebApplication
import kotlinx.html.link
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi

plugins {
alias(libs.plugins.jetbrains.compose)
alias(libs.plugins.compose.compiler)
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.kobweb.application)
}

group = "me.luki.website"
version = "1.0-SNAPSHOT"
version = "0.9.0"

kobweb {
app {
Expand All @@ -24,13 +25,18 @@ kobweb {
kotlin {
configAsKobwebApplication("website")

js {
@OptIn(ExperimentalKotlinGradlePluginApi::class)
compilerOptions.target = "es2015"
}

sourceSets {
commonMain.dependencies {
implementation(compose.runtime)
implementation(libs.compose.runtime)
}

jsMain.dependencies {
implementation(compose.html.core)
implementation(libs.compose.html.core)
implementation(libs.kobweb.core)
implementation(libs.kobweb.silk)
implementation(libs.silk.icons.fa)
Expand Down

0 comments on commit bd451bc

Please sign in to comment.