mirror of
https://github.com/tachiyomiorg/tachiyomi-extensions-inspector.git
synced 2024-12-25 16:21:50 +01:00
better use of kotlin DSL
This commit is contained in:
parent
10dee8b345
commit
cf8e274883
@ -6,15 +6,15 @@ node {
|
||||
nodeProjectDir.set(file("${project.projectDir}/react/"))
|
||||
}
|
||||
|
||||
tasks.named("yarn_build") {
|
||||
dependsOn("yarn") // install node_modules
|
||||
}
|
||||
|
||||
tasks.register<Copy>("copyBuild") {
|
||||
from(file("$rootDir/webUI/react/build"))
|
||||
tasks {
|
||||
register<Copy>("copyBuild") {
|
||||
from(file("${node.nodeProjectDir}/build"))
|
||||
into(file("$rootDir/server/src/main/resources/react"))
|
||||
}
|
||||
|
||||
tasks.named("copyBuild") {
|
||||
dependsOn("yarn_build")
|
||||
}
|
||||
|
||||
named("yarn_build") {
|
||||
dependsOn("yarn") // install node_modules
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user