mirror of
https://github.com/tachiyomiorg/tachiyomi-extensions-inspector.git
synced 2024-12-26 00:31:49 +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/"))
|
nodeProjectDir.set(file("${project.projectDir}/react/"))
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.named("yarn_build") {
|
tasks {
|
||||||
dependsOn("yarn") // install node_modules
|
register<Copy>("copyBuild") {
|
||||||
}
|
from(file("${node.nodeProjectDir}/build"))
|
||||||
|
into(file("$rootDir/server/src/main/resources/react"))
|
||||||
|
|
||||||
tasks.register<Copy>("copyBuild") {
|
dependsOn("yarn_build")
|
||||||
from(file("$rootDir/webUI/react/build"))
|
}
|
||||||
into(file("$rootDir/server/src/main/resources/react"))
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.named("copyBuild") {
|
named("yarn_build") {
|
||||||
dependsOn("yarn_build")
|
dependsOn("yarn") // install node_modules
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user