mirror of
https://github.com/tachiyomiorg/tachiyomi-extensions-inspector.git
synced 2024-12-27 17:21:49 +01:00
21 lines
427 B
Plaintext
21 lines
427 B
Plaintext
plugins {
|
|
id("com.github.node-gradle.node") version "3.0.1"
|
|
}
|
|
|
|
val nodeRoot = "${project.projectDir}/react"
|
|
node {
|
|
nodeProjectDir.set(file(nodeRoot))
|
|
}
|
|
|
|
tasks {
|
|
register<Copy>("copyBuild") {
|
|
from(file("$nodeRoot/build"))
|
|
into(file("$rootDir/server/src/main/resources/react"))
|
|
|
|
dependsOn("yarn_build")
|
|
}
|
|
|
|
named("yarn_build") {
|
|
dependsOn("yarn") // install node_modules
|
|
}
|
|
} |