-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
46 lines (41 loc) · 1.09 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
plugins {
kotlin("multiplatform").apply(false)
kotlin("plugin.js-plain-objects").apply(false)
id("org.jetbrains.compose").apply(false)
kotlin("plugin.compose").apply(false)
}
group = "org.jraf"
version = "1.6.2"
tasks.register<Sync>("devDist") {
listOf(
":serviceworker",
":popup",
":offscreen",
)
.map {
project(it)
}
.forEach {
dependsOn("${it.name}:jsBrowserDevelopmentExecutableDistribution")
from(it.layout.buildDirectory.dir("dist/js/developmentExecutable"))
}
into(layout.buildDirectory.dir("devDist"))
}
tasks.register<Zip>("dist") {
listOf(
":serviceworker",
":popup",
":offscreen",
)
.map {
project(it)
}
.forEach {
dependsOn("${it.name}:jsBrowserDistribution")
from(it.layout.buildDirectory.dir("dist/js/productionExecutable"))
}
destinationDirectory.set(layout.buildDirectory.dir("dist"))
}
// Run `./gradlew refreshVersions` to update dependencies
// Run `./gradlew devDist` for tests (result is in build/devDist)
// Run `./gradlew dist` to release (result is in build/dist/bbt-x.y.z.zip)