refactor(frontend): repoint repo tooling to the frontend path

- Tooling and automation:
  - update Dependabot and the frontend test workflow to read frontend-owned paths
  - keep published frontend test reports aligned with the renamed project directory
  - extend ignore rules for frontend-generated test output and local dependencies
- Local developer entrypoints:
  - repoint the root Justfile ui module at frontend/Justfile
  - update the dev compose bind mount to use ./frontend
  - update the Weblate setup script to source translations from frontend/src/i18n
- Build integration:
  - repoint the Docker frontend build stage to /workspace/frontend and the renamed source paths
  - update the backend Gradle fallback dist location to ../frontend/dist/grimmory/browser
- Repository guidance:
  - rewrite root docs and AGENTS references that still pointed at booklore-ui so contributor guidance matches the new directory name

- Validation:
  - not run; this commit is scoped to staged path rewrites only
This commit is contained in:
James Cox
2026-04-22 17:26:39 -04:00
committed by Zach Yale
parent 874b013f75
commit 42d9dcb4d3
11 changed files with 24 additions and 22 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ updates:
# Frontend – npm (Angular)
- package-ecosystem: "npm"
directory: "/booklore-ui"
directory: "/frontend"
schedule:
interval: "weekly"
day: "friday"
+2 -2
View File
@@ -142,7 +142,7 @@ jobs:
uses: EnricoMi/publish-unit-test-result-action@c950f6fb443cb5af20a377fd0dfaa78838901040 # v2
if: ${{ always() && inputs.publish_test_results }}
with:
files: booklore-ui/test-results/vitest-results.xml
files: frontend/test-results/vitest-results.xml
check_name: Frontend Test Results
- name: Upload Frontend Test Reports
@@ -151,7 +151,7 @@ jobs:
with:
name: frontend-test-reports
path: |
booklore-ui/test-results/vitest-results.xml
frontend/test-results/vitest-results.xml
retention-days: 30
- name: Validate Frontend Test Results
+2
View File
@@ -44,6 +44,8 @@ local-scripts/
### Dev config, books, and data ###
booklore-ui/test-results/
frontend/test-results/
frontend/node_modules/
booklore-api/src/main/resources/application-local.yaml
/shared/
+3 -3
View File
@@ -15,7 +15,7 @@
- Application code: `src/main/java`
- Resources and Flyway migrations: `src/main/resources`
- Tests: `src/test/java`
- **Frontend (`booklore-ui/`)**
- **Frontend (`frontend/`)**
- Application code: `src/app/{core,features,shared}`
- Translations: `src/i18n/`
- Assets: `src/assets/`
@@ -54,8 +54,8 @@ just ui check # run frontend verification
- Use 2-space indentation in TypeScript, HTML, and SCSS.
- Keep Angular code on standalone components. Do not add NgModules.
- Prefer `inject()` over constructor injection.
- Follow `booklore-ui/eslint.config.js`: component selectors use `app-*`, directive selectors use `app*`, and `any` is disallowed.
- Put user-facing strings in Transloco files under `booklore-ui/src/i18n/`.
- Follow `frontend/eslint.config.js`: component selectors use `app-*`, directive selectors use `app*`, and `any` is disallowed.
- Put user-facing strings in Transloco files under `frontend/src/i18n/`.
- Keep responsive behavior intact.
- Use Vitest for tests.
+4 -4
View File
@@ -89,7 +89,7 @@ git push origin develop
```
grimmory/
├── booklore-ui/ # Angular frontend (TypeScript, PrimeNG)
├── frontend/ # Angular frontend (TypeScript, PrimeNG)
├── booklore-api/ # Spring Boot backend (Java 25, Gradle)
├── deploy/ # Compose, Helm, and Podman deployment examples
├── packaging/docker/ # Container runtime assets used by the Docker build
@@ -122,7 +122,7 @@ just image-build # Build the production image locally
Use the repo-level guide for workflow, release, and PR policy, then drop into the component-specific guides when you are working inside a project:
- Backend: [booklore-api/README.md](booklore-api/README.md) and [booklore-api/CONTRIBUTING.md](booklore-api/CONTRIBUTING.md)
- Frontend: [booklore-ui/README.md](booklore-ui/README.md) and [booklore-ui/CONTRIBUTING.md](booklore-ui/CONTRIBUTING.md)
- Frontend: [frontend/README.md](frontend/README.md) and [frontend/CONTRIBUTING.md](frontend/CONTRIBUTING.md)
### Option 1: Docker Development Stack (Recommended)
@@ -348,7 +348,7 @@ Before opening your PR:
- [ ] PR is linked to an **approved** issue (PRs without a linked issue will be closed)
- [ ] All tests pass (`just test`)
- [ ] Actual test output is pasted in the PR description
- [ ] Code follows the relevant component conventions (see [booklore-api/CONTRIBUTING.md](booklore-api/CONTRIBUTING.md) and [booklore-ui/CONTRIBUTING.md](booklore-ui/CONTRIBUTING.md))
- [ ] Code follows the relevant component conventions (see [booklore-api/CONTRIBUTING.md](booklore-api/CONTRIBUTING.md) and [frontend/CONTRIBUTING.md](frontend/CONTRIBUTING.md))
- [ ] No lint errors
- [ ] Branch is up-to-date with `develop`
- [ ] You ran the full stack locally and manually verified the change works
@@ -383,7 +383,7 @@ We've seen a sharp increase in AI-generated PRs where the contributor clearly ne
Detailed coding conventions now live with each project:
- Backend rules: [booklore-api/CONTRIBUTING.md](booklore-api/CONTRIBUTING.md)
- Frontend rules: [booklore-ui/CONTRIBUTING.md](booklore-ui/CONTRIBUTING.md)
- Frontend rules: [frontend/CONTRIBUTING.md](frontend/CONTRIBUTING.md)
---
+5 -5
View File
@@ -1,13 +1,13 @@
FROM --platform=$BUILDPLATFORM node:24-alpine AS frontend-build
WORKDIR /workspace/booklore-ui
WORKDIR /workspace/frontend
COPY booklore-ui/package.json booklore-ui/package-lock.json ./
COPY frontend/package.json frontend/package-lock.json ./
RUN --mount=type=cache,target=/root/.npm \
npm ci --no-audit --no-fund
COPY booklore-ui/ ./
RUN --mount=type=cache,target=/workspace/booklore-ui/.angular/cache \
COPY frontend/ ./
RUN --mount=type=cache,target=/workspace/frontend/.angular/cache \
npm run build --configuration=production
FROM --platform=$BUILDPLATFORM gradle:9.3.1-jdk25-alpine AS backend-build
@@ -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/grimmory/browser /tmp/frontend-dist
COPY --from=frontend-build /workspace/frontend/dist/grimmory/browser /tmp/frontend-dist
RUN --mount=type=cache,target=/home/gradle/.gradle \
./gradlew --no-daemon -PfrontendDistDir=/tmp/frontend-dist bootJar
+1 -1
View File
@@ -1,7 +1,7 @@
set shell := ["bash", "-eu", "-o", "pipefail", "-c"]
mod api 'booklore-api/Justfile'
mod ui 'booklore-ui/Justfile'
mod ui 'frontend/Justfile'
mod release 'tools/release/Justfile'
compose_file := env_var_or_default('GRIMMORY_COMPOSE_FILE', 'dev.docker-compose.yml')
+3 -3
View File
@@ -176,14 +176,14 @@ Additional deployment examples:
This repository contains two application projects:
- Backend: [`booklore-api/README.md`](booklore-api/README.md)
- Frontend: [`booklore-ui/README.md`](booklore-ui/README.md)
- Frontend: [`frontend/README.md`](frontend/README.md)
Contributor workflow, PR policy, and release semantics live in [CONTRIBUTING.md](CONTRIBUTING.md). Component-specific implementation guidance lives in:
- [`booklore-api/CONTRIBUTING.md`](booklore-api/CONTRIBUTING.md)
- [`booklore-ui/CONTRIBUTING.md`](booklore-ui/CONTRIBUTING.md)
- [`frontend/CONTRIBUTING.md`](frontend/CONTRIBUTING.md)
The root [`Justfile`](Justfile) is the primary local command surface and mirrors the folder-local `booklore-api/Justfile` and `booklore-ui/Justfile` entrypoints.
The root [`Justfile`](Justfile) is the primary local command surface and mirrors the folder-local `booklore-api/Justfile` and `frontend/Justfile` entrypoints.
```bash
just # Show root + api + ui recipes
+1 -1
View File
@@ -16,7 +16,7 @@ plugins {
group = "org.booklore"
version = "0.0.1-SNAPSHOT"
val defaultFrontendDistDir = file("${rootDir}/../booklore-ui/dist/grimmory/browser")
val defaultFrontendDistDir = file("${rootDir}/../frontend/dist/grimmory/browser")
val configuredFrontendDistDir = providers.gradleProperty("frontendDistDir")
.map { file(it) }
+1 -1
View File
@@ -58,7 +58,7 @@ services:
tty: true
restart: unless-stopped
volumes:
- './booklore-ui:/angular-app'
- './frontend:/angular-app'
# you can have node_modules in a volume. however, if you enable this, expect trouble in some IDEs, as the deps are not available anymore
# - node_modules:/angular-app/node_modules
+1 -1
View File
@@ -26,7 +26,7 @@ PROJECT_WEB="https://github.com/grimmory-tools/grimmory"
REPO_URL="https://github.com/grimmory-tools/grimmory.git"
REPO_BRANCH="develop"
FILE_BASE="booklore-ui/src/i18n"
FILE_BASE="frontend/src/i18n"
SOURCE_LANG="en"