-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
53 lines (43 loc) · 1.04 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
plugins {
kotlin("multiplatform")
id("org.jetbrains.compose")
}
group = "com.fgrutsch"
version = "1.0.0-SNAPSHOT"
repositories {
mavenCentral()
}
val patternFlyVersion: String by project
kotlin {
jvmToolchain(17)
js(IR) {
browser {
runTask(Action {
devServer = devServer?.copy(port = 3000)
})
commonWebpackConfig(Action {
cssSupport {
enabled.set(true)
}
outputFileName = "app.js"
})
webpackTask(Action {
mainOutputFileName = "app.js"
})
}
binaries.executable()
}
sourceSets {
val commonMain by getting {
dependencies {
implementation(compose.runtime)
}
}
val jsMain by getting {
dependencies {
implementation(compose.html.core)
implementation(npm("@patternfly/patternfly", patternFlyVersion))
}
}
}
}