tachiyomi-extensions-inspector/webUI/build.gradle.kts

21 lines
415 B
Plaintext
Raw Normal View History

2020-12-23 23:38:03 +01:00
plugins {
2021-05-03 20:51:37 +02:00
id("com.github.node-gradle.node") version "3.0.1"
2020-12-23 23:38:03 +01:00
}
node {
2021-05-03 20:51:37 +02:00
nodeProjectDir.set(file("${project.projectDir}/react/"))
2021-01-20 00:35:40 +01:00
}
tasks.named("yarn_build") {
2021-05-03 20:51:37 +02:00
dependsOn("yarn") // install node_modules
2021-01-20 00:35:40 +01:00
}
tasks.register<Copy>("copyBuild") {
from(file("$rootDir/webUI/react/build"))
into(file("$rootDir/server/src/main/resources/react"))
}
tasks.named("copyBuild") {
dependsOn("yarn_build")
}