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:
@@ -21,7 +21,7 @@ updates:
|
|||||||
|
|
||||||
# Frontend – npm (Angular)
|
# Frontend – npm (Angular)
|
||||||
- package-ecosystem: "npm"
|
- package-ecosystem: "npm"
|
||||||
directory: "/booklore-ui"
|
directory: "/frontend"
|
||||||
schedule:
|
schedule:
|
||||||
interval: "weekly"
|
interval: "weekly"
|
||||||
day: "friday"
|
day: "friday"
|
||||||
|
|||||||
@@ -142,7 +142,7 @@ jobs:
|
|||||||
uses: EnricoMi/publish-unit-test-result-action@c950f6fb443cb5af20a377fd0dfaa78838901040 # v2
|
uses: EnricoMi/publish-unit-test-result-action@c950f6fb443cb5af20a377fd0dfaa78838901040 # v2
|
||||||
if: ${{ always() && inputs.publish_test_results }}
|
if: ${{ always() && inputs.publish_test_results }}
|
||||||
with:
|
with:
|
||||||
files: booklore-ui/test-results/vitest-results.xml
|
files: frontend/test-results/vitest-results.xml
|
||||||
check_name: Frontend Test Results
|
check_name: Frontend Test Results
|
||||||
|
|
||||||
- name: Upload Frontend Test Reports
|
- name: Upload Frontend Test Reports
|
||||||
@@ -151,7 +151,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: frontend-test-reports
|
name: frontend-test-reports
|
||||||
path: |
|
path: |
|
||||||
booklore-ui/test-results/vitest-results.xml
|
frontend/test-results/vitest-results.xml
|
||||||
retention-days: 30
|
retention-days: 30
|
||||||
|
|
||||||
- name: Validate Frontend Test Results
|
- name: Validate Frontend Test Results
|
||||||
|
|||||||
@@ -44,6 +44,8 @@ local-scripts/
|
|||||||
|
|
||||||
### Dev config, books, and data ###
|
### Dev config, books, and data ###
|
||||||
booklore-ui/test-results/
|
booklore-ui/test-results/
|
||||||
|
frontend/test-results/
|
||||||
|
frontend/node_modules/
|
||||||
booklore-api/src/main/resources/application-local.yaml
|
booklore-api/src/main/resources/application-local.yaml
|
||||||
/shared/
|
/shared/
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
- Application code: `src/main/java`
|
- Application code: `src/main/java`
|
||||||
- Resources and Flyway migrations: `src/main/resources`
|
- Resources and Flyway migrations: `src/main/resources`
|
||||||
- Tests: `src/test/java`
|
- Tests: `src/test/java`
|
||||||
- **Frontend (`booklore-ui/`)**
|
- **Frontend (`frontend/`)**
|
||||||
- Application code: `src/app/{core,features,shared}`
|
- Application code: `src/app/{core,features,shared}`
|
||||||
- Translations: `src/i18n/`
|
- Translations: `src/i18n/`
|
||||||
- Assets: `src/assets/`
|
- Assets: `src/assets/`
|
||||||
@@ -54,8 +54,8 @@ just ui check # run frontend verification
|
|||||||
- Use 2-space indentation in TypeScript, HTML, and SCSS.
|
- Use 2-space indentation in TypeScript, HTML, and SCSS.
|
||||||
- Keep Angular code on standalone components. Do not add NgModules.
|
- Keep Angular code on standalone components. Do not add NgModules.
|
||||||
- Prefer `inject()` over constructor injection.
|
- Prefer `inject()` over constructor injection.
|
||||||
- Follow `booklore-ui/eslint.config.js`: component selectors use `app-*`, directive selectors use `app*`, and `any` is disallowed.
|
- 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 `booklore-ui/src/i18n/`.
|
- Put user-facing strings in Transloco files under `frontend/src/i18n/`.
|
||||||
- Keep responsive behavior intact.
|
- Keep responsive behavior intact.
|
||||||
- Use Vitest for tests.
|
- Use Vitest for tests.
|
||||||
|
|
||||||
|
|||||||
+4
-4
@@ -89,7 +89,7 @@ git push origin develop
|
|||||||
|
|
||||||
```
|
```
|
||||||
grimmory/
|
grimmory/
|
||||||
├── booklore-ui/ # Angular frontend (TypeScript, PrimeNG)
|
├── frontend/ # Angular frontend (TypeScript, PrimeNG)
|
||||||
├── booklore-api/ # Spring Boot backend (Java 25, Gradle)
|
├── booklore-api/ # Spring Boot backend (Java 25, Gradle)
|
||||||
├── deploy/ # Compose, Helm, and Podman deployment examples
|
├── deploy/ # Compose, Helm, and Podman deployment examples
|
||||||
├── packaging/docker/ # Container runtime assets used by the Docker build
|
├── 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:
|
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)
|
- 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)
|
### 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)
|
- [ ] PR is linked to an **approved** issue (PRs without a linked issue will be closed)
|
||||||
- [ ] All tests pass (`just test`)
|
- [ ] All tests pass (`just test`)
|
||||||
- [ ] Actual test output is pasted in the PR description
|
- [ ] 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
|
- [ ] No lint errors
|
||||||
- [ ] Branch is up-to-date with `develop`
|
- [ ] Branch is up-to-date with `develop`
|
||||||
- [ ] You ran the full stack locally and manually verified the change works
|
- [ ] 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:
|
Detailed coding conventions now live with each project:
|
||||||
|
|
||||||
- Backend rules: [booklore-api/CONTRIBUTING.md](booklore-api/CONTRIBUTING.md)
|
- 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
@@ -1,13 +1,13 @@
|
|||||||
FROM --platform=$BUILDPLATFORM node:24-alpine AS frontend-build
|
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 \
|
RUN --mount=type=cache,target=/root/.npm \
|
||||||
npm ci --no-audit --no-fund
|
npm ci --no-audit --no-fund
|
||||||
|
|
||||||
COPY booklore-ui/ ./
|
COPY frontend/ ./
|
||||||
RUN --mount=type=cache,target=/workspace/booklore-ui/.angular/cache \
|
RUN --mount=type=cache,target=/workspace/frontend/.angular/cache \
|
||||||
npm run build --configuration=production
|
npm run build --configuration=production
|
||||||
|
|
||||||
FROM --platform=$BUILDPLATFORM gradle:9.3.1-jdk25-alpine AS backend-build
|
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
|
./gradlew --no-daemon dependencies
|
||||||
|
|
||||||
COPY booklore-api/ ./
|
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 \
|
RUN --mount=type=cache,target=/home/gradle/.gradle \
|
||||||
./gradlew --no-daemon -PfrontendDistDir=/tmp/frontend-dist bootJar
|
./gradlew --no-daemon -PfrontendDistDir=/tmp/frontend-dist bootJar
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
set shell := ["bash", "-eu", "-o", "pipefail", "-c"]
|
set shell := ["bash", "-eu", "-o", "pipefail", "-c"]
|
||||||
|
|
||||||
mod api 'booklore-api/Justfile'
|
mod api 'booklore-api/Justfile'
|
||||||
mod ui 'booklore-ui/Justfile'
|
mod ui 'frontend/Justfile'
|
||||||
mod release 'tools/release/Justfile'
|
mod release 'tools/release/Justfile'
|
||||||
|
|
||||||
compose_file := env_var_or_default('GRIMMORY_COMPOSE_FILE', 'dev.docker-compose.yml')
|
compose_file := env_var_or_default('GRIMMORY_COMPOSE_FILE', 'dev.docker-compose.yml')
|
||||||
|
|||||||
@@ -176,14 +176,14 @@ Additional deployment examples:
|
|||||||
This repository contains two application projects:
|
This repository contains two application projects:
|
||||||
|
|
||||||
- Backend: [`booklore-api/README.md`](booklore-api/README.md)
|
- 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:
|
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-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
|
```bash
|
||||||
just # Show root + api + ui recipes
|
just # Show root + api + ui recipes
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ plugins {
|
|||||||
group = "org.booklore"
|
group = "org.booklore"
|
||||||
version = "0.0.1-SNAPSHOT"
|
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")
|
val configuredFrontendDistDir = providers.gradleProperty("frontendDistDir")
|
||||||
.map { file(it) }
|
.map { file(it) }
|
||||||
|
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ services:
|
|||||||
tty: true
|
tty: true
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
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
|
# 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
|
# - node_modules:/angular-app/node_modules
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ PROJECT_WEB="https://github.com/grimmory-tools/grimmory"
|
|||||||
|
|
||||||
REPO_URL="https://github.com/grimmory-tools/grimmory.git"
|
REPO_URL="https://github.com/grimmory-tools/grimmory.git"
|
||||||
REPO_BRANCH="develop"
|
REPO_BRANCH="develop"
|
||||||
FILE_BASE="booklore-ui/src/i18n"
|
FILE_BASE="frontend/src/i18n"
|
||||||
|
|
||||||
SOURCE_LANG="en"
|
SOURCE_LANG="en"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user