tachiyomi-extensions-inspector/webUI/build.gradle.kts
2021-01-20 03:05:40 +03:30

22 lines
448 B
Plaintext

plugins {
id("com.moowork.node") version "1.3.1"
}
node {
workDir = file("${project.projectDir}/react/")
nodeModulesDir = file("${project.projectDir}/react/node_modules")
}
tasks.named("yarn_build") {
dependsOn("yarn_install")
}
tasks.register<Copy>("copyBuild") {
from(file("$rootDir/webUI/react/build"))
into(file("$rootDir/server/src/main/resources/react"))
}
tasks.named("copyBuild") {
dependsOn("yarn_build")
}