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

22 lines
452 B
Plaintext
Raw Normal View History

2020-12-23 23:38:03 +01:00
plugins {
id("com.moowork.node") version "1.3.1"
}
node {
workDir = file("${project.projectDir}/react/")
2021-01-21 12:34:11 +01:00
nodeModulesDir = file("${project.projectDir}/react/")
2021-01-20 00:35:40 +01:00
}
tasks.named("yarn_build") {
2021-01-21 12:34:11 +01:00
dependsOn("yarn") // install node_moduels
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")
}