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

20 lines
417 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
}
2021-05-20 07:54:33 +02:00
tasks {
register<Copy>("copyBuild") {
from(file("${node.nodeProjectDir}/build"))
into(file("$rootDir/server/src/main/resources/react"))
2021-01-20 00:35:40 +01:00
2021-05-20 07:54:33 +02:00
dependsOn("yarn_build")
}
2021-01-20 00:35:40 +01:00
2021-05-20 07:54:33 +02:00
named("yarn_build") {
dependsOn("yarn") // install node_modules
}
}