Rename BlueMapVue to webapp
@ -51,7 +51,7 @@ spotless {
|
|||||||
node {
|
node {
|
||||||
version.set("14.16.1")
|
version.set("14.16.1")
|
||||||
download.set(true)
|
download.set(true)
|
||||||
nodeProjectDir.set(file("BlueMapVue/"))
|
nodeProjectDir.set(file("webapp/"))
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType(JavaCompile::class).configureEach {
|
tasks.withType(JavaCompile::class).configureEach {
|
||||||
@ -71,25 +71,25 @@ tasks.test {
|
|||||||
|
|
||||||
tasks.register("buildWebapp", type = NpmTask::class) {
|
tasks.register("buildWebapp", type = NpmTask::class) {
|
||||||
doFirst {
|
doFirst {
|
||||||
if (!file("BlueMapVue/dist/").deleteRecursively())
|
if (!file("webapp/dist/").deleteRecursively())
|
||||||
throw IOException("Failed to delete build directory!")
|
throw IOException("Failed to delete build directory!")
|
||||||
}
|
}
|
||||||
|
|
||||||
dependsOn ("npmInstall")
|
dependsOn ("npmInstall")
|
||||||
args.set(listOf("run", "build"))
|
args.set(listOf("run", "build"))
|
||||||
|
|
||||||
inputs.dir("BlueMapVue/")
|
inputs.dir("webapp/")
|
||||||
outputs.dir("BlueMapVue/dist/")
|
outputs.dir("webapp/dist/")
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.register("zipWebapp", type = Zip::class) {
|
tasks.register("zipWebapp", type = Zip::class) {
|
||||||
dependsOn ("buildWebapp")
|
dependsOn ("buildWebapp")
|
||||||
from (fileTree("BlueMapVue/dist/"))
|
from (fileTree("webapp/dist/"))
|
||||||
archiveFileName.set("webapp.zip")
|
archiveFileName.set("webapp.zip")
|
||||||
destinationDirectory.set(file("src/main/resources/de/bluecolored/bluemap/"))
|
destinationDirectory.set(file("src/main/resources/de/bluecolored/bluemap/"))
|
||||||
|
|
||||||
//outputs.upToDateWhen { false }
|
//outputs.upToDateWhen { false }
|
||||||
inputs.dir("BlueMapVue/dist/")
|
inputs.dir("webapp/dist/")
|
||||||
outputs.file("src/main/resources/de/bluecolored/bluemap/webapp.zip")
|
outputs.file("src/main/resources/de/bluecolored/bluemap/webapp.zip")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 53 KiB After Width: | Height: | Size: 53 KiB |
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 6.9 KiB |
Before Width: | Height: | Size: 919 B After Width: | Height: | Size: 919 B |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |