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