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

21 lines
427 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
}
2021-05-20 17:21:32 +02:00
val nodeRoot = "${project.projectDir}/react"
2020-12-23 23:38:03 +01:00
node {
2021-05-20 17:21:32 +02:00
nodeProjectDir.set(file(nodeRoot))
2021-01-20 00:35:40 +01:00
}
2021-05-20 07:54:33 +02:00
tasks {
register<Copy>("copyBuild") {
2021-05-20 17:21:32 +02:00
from(file("$nodeRoot/build"))
2021-05-20 07:54:33 +02:00
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
}
}