21 lines
415 B
Plaintext
Raw Normal View History

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