mirror of
https://github.com/plexusorg/Module-HTTPD.git
synced 2026-06-04 00:56:54 +00:00
Update build.gradle.kts
This commit is contained in:
+3
-2
@@ -54,10 +54,11 @@ dependencies {
|
|||||||
|
|
||||||
val frontendDir = layout.projectDirectory.dir("src/main/frontend")
|
val frontendDir = layout.projectDirectory.dir("src/main/frontend")
|
||||||
val frontendOutputDir = layout.buildDirectory.dir("generated/frontend-resources/httpd/app")
|
val frontendOutputDir = layout.buildDirectory.dir("generated/frontend-resources/httpd/app")
|
||||||
|
val bunExecutable = findProperty("bunPath")?.toString() ?: "bun"
|
||||||
|
|
||||||
tasks.register<Exec>("bunInstallFrontend") {
|
tasks.register<Exec>("bunInstallFrontend") {
|
||||||
workingDir = frontendDir.asFile
|
workingDir = frontendDir.asFile
|
||||||
commandLine("bun", "install", "--frozen-lockfile")
|
commandLine(bunExecutable, "install", "--frozen-lockfile")
|
||||||
inputs.files(
|
inputs.files(
|
||||||
frontendDir.file("package.json"),
|
frontendDir.file("package.json"),
|
||||||
frontendDir.file("bun.lock")
|
frontendDir.file("bun.lock")
|
||||||
@@ -67,7 +68,7 @@ tasks.register<Exec>("bunInstallFrontend") {
|
|||||||
|
|
||||||
tasks.register<Exec>("buildFrontend") {
|
tasks.register<Exec>("buildFrontend") {
|
||||||
workingDir = frontendDir.asFile
|
workingDir = frontendDir.asFile
|
||||||
commandLine("bun", "run", "build")
|
commandLine(bunExecutable, "run", "build")
|
||||||
dependsOn("bunInstallFrontend")
|
dependsOn("bunInstallFrontend")
|
||||||
inputs.dir(frontendDir.dir("src"))
|
inputs.dir(frontendDir.dir("src"))
|
||||||
inputs.files(
|
inputs.files(
|
||||||
|
|||||||
Reference in New Issue
Block a user