refactor(build): rename frontend dist output to grimmory
- Frontend build output: - change the Angular application output path from `dist/booklore` to `dist/grimmory` - keep the workspace folder layout unchanged while aligning the emitted artifact name with Grimmory - Packaging pipeline: - update the Docker frontend copy step to consume `dist/grimmory/browser` - update the backend Gradle default frontend dist path to the same location so local packaging and container builds stay in sync
This commit is contained in:
+1
-1
@@ -22,7 +22,7 @@ RUN --mount=type=cache,target=/home/gradle/.gradle \
|
||||
./gradlew --no-daemon dependencies
|
||||
|
||||
COPY booklore-api/ ./
|
||||
COPY --from=frontend-build /workspace/booklore-ui/dist/booklore/browser /tmp/frontend-dist
|
||||
COPY --from=frontend-build /workspace/booklore-ui/dist/grimmory/browser /tmp/frontend-dist
|
||||
|
||||
RUN --mount=type=cache,target=/home/gradle/.gradle \
|
||||
./gradlew --no-daemon -PfrontendDistDir=/tmp/frontend-dist bootJar
|
||||
|
||||
@@ -10,7 +10,7 @@ plugins {
|
||||
group = 'org.booklore'
|
||||
version = '0.0.1-SNAPSHOT'
|
||||
|
||||
def defaultFrontendDistDir = file("${rootDir}/../booklore-ui/dist/booklore/browser")
|
||||
def defaultFrontendDistDir = file("${rootDir}/../booklore-ui/dist/grimmory/browser")
|
||||
def configuredFrontendDistDir = providers.gradleProperty('frontendDistDir')
|
||||
.map { file(it) }
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
"build": {
|
||||
"builder": "@angular/build:application",
|
||||
"options": {
|
||||
"outputPath": "dist/booklore",
|
||||
"outputPath": "dist/grimmory",
|
||||
"index": "src/index.html",
|
||||
"browser": "src/main.ts",
|
||||
"polyfills": [
|
||||
|
||||
Reference in New Issue
Block a user