- Command surface: - add a root `Justfile` with namespaced `api`, `ui`, and `release` modules so humans and agents can use the same entrypoints from the repo root - add project-local Justfiles for `booklore-api`, `booklore-ui`, and `tools/release` so each area remains self-contained and can still be driven from inside its own directory - standardize local developer workflows around `just check`, `just test`, `just api run`, `just ui dev`, `just db-up`, and `just image-build` - Workflow integration: - update the reusable test suite workflow to install `just` and run backend and frontend CI steps through the Justfiles instead of hardcoded shell commands - update the semantic-release workflows to install `just` and invoke release tooling via `just release install`, `just release preview`, and `just release run` - keep the Docker image publication workflows on the native Docker actions while moving the project-command logic into the canonical command surface - Documentation: - split backend and frontend implementation guidance into `booklore-api/README.md`, `booklore-api/CONTRIBUTING.md`, `booklore-ui/README.md`, and `booklore-ui/CONTRIBUTING.md` - simplify the top-level `README.md` and `CONTRIBUTING.md` so they stay focused on overview, policy, and navigation while pointing to component-specific guides for deeper detail - align contributor-facing examples on the `just` interface instead of mixing ad hoc Gradle, npm, Docker, and Compose commands - Developer environment: - add `mise.toml` to pin the expected Java and Node toolchain versions for local work - switch the development Compose defaults from the old Booklore database values to Grimmory-oriented defaults - keep the command layout ready for a future API/UI split without forcing that packaging change yet
62 lines
1.3 KiB
Makefile
62 lines
1.3 KiB
Makefile
set shell := ["bash", "-eu", "-o", "pipefail", "-c"]
|
|
|
|
npm := "npm"
|
|
|
|
# Show the frontend recipes available in this directory.
|
|
help:
|
|
@just --list
|
|
|
|
# Install or update frontend dependencies for local development.
|
|
install:
|
|
{{ npm }} install
|
|
|
|
# Install the frontend dependencies exactly as CI does.
|
|
install-ci:
|
|
{{ npm }} ci
|
|
|
|
# Run the Angular development server.
|
|
dev:
|
|
{{ npm }} run dev
|
|
|
|
# Run the Angular development server with the default `start` script.
|
|
start:
|
|
{{ npm }} start
|
|
|
|
# Build the production frontend bundle.
|
|
build:
|
|
{{ npm }} run build
|
|
|
|
# Build the frontend continuously in development mode.
|
|
watch:
|
|
{{ npm }} run watch
|
|
|
|
# Run the frontend test suite.
|
|
test:
|
|
{{ npm }} test
|
|
|
|
# Run the frontend tests with a coverage report.
|
|
coverage:
|
|
npx ng test --coverage
|
|
|
|
# Run the frontend linter.
|
|
lint:
|
|
{{ npm }} run lint
|
|
|
|
# Check the installed dependency tree.
|
|
deps:
|
|
{{ npm }} ls --depth=0
|
|
|
|
# Run a local dependency audit without forcing a CI-specific severity threshold.
|
|
audit:
|
|
{{ npm }} audit
|
|
|
|
# Run the stricter dependency audit used in CI.
|
|
audit-ci:
|
|
{{ npm }} audit --audit-level=critical
|
|
|
|
# Run the standard local frontend verification pass.
|
|
check: deps lint test
|
|
|
|
# Run the frontend CI-style verification sequence from a clean install.
|
|
ci-check: install-ci audit-ci deps lint test
|