- Frontend package management: - add a repo-root `.yarnrc.yml` that pins Yarn to the `node-modules` linker with a local cache - add the modern Yarn package manager declaration to `frontend/package.json` - replace the frontend npm lockfile with `frontend/yarn.lock` - move the frontend Just recipes to Corepack-managed Yarn commands for install, audit, build, test, and lint - run the production build in CI-style mode so non-interactive Yarn builds behave consistently - Release automation: - add the modern Yarn package manager declaration to `tools/release/package.json` - replace the release tooling npm lockfile with `tools/release/yarn.lock` - switch the release Just recipes from `npm` and `npx` to Corepack-managed Yarn scripts - CI and local runtime wiring: - switch the frontend and release GitHub Actions caches from npm lockfiles to Yarn lockfiles - update the root `doctor` output and contributor prerequisites to report Yarn and Corepack instead of npm - update the dev compose UI container to Node 24 with immutable Yarn installs - restore the Docker frontend build stage to install and build through Yarn, including the shared cache path - Repository hygiene: - ignore the repo-local Yarn cache and per-project Yarn state directories created by modern Yarn installs - Validation: - `just ui install-ci` - `just release install` - `just ui build` - `just image-build linux/amd64 codex-yarn-port-test` was not runnable because the local Docker daemon was unavailable
62 lines
1.4 KiB
Makefile
62 lines
1.4 KiB
Makefile
set shell := ["bash", "-eu", "-o", "pipefail", "-c"]
|
|
|
|
yarn := "env YARN_ENABLE_GLOBAL_CACHE=0 YARN_CACHE_FOLDER=../.yarn/cache corepack yarn"
|
|
|
|
# Show the frontend recipes available in this directory.
|
|
help:
|
|
@just --list
|
|
|
|
# Install or update frontend dependencies for local development.
|
|
install:
|
|
{{ yarn }} install
|
|
|
|
# Install the frontend dependencies exactly as CI does.
|
|
install-ci:
|
|
{{ yarn }} install --immutable
|
|
|
|
# Run the Angular development server.
|
|
dev:
|
|
{{ yarn }} dev
|
|
|
|
# Run the Angular development server with the default `start` script.
|
|
start:
|
|
{{ yarn }} start
|
|
|
|
# Build the production frontend bundle.
|
|
build:
|
|
CI=1 NG_CLI_ANALYTICS=false {{ yarn }} build:prod
|
|
|
|
# Build the frontend continuously in development mode.
|
|
watch:
|
|
{{ yarn }} watch
|
|
|
|
# Run the frontend test suite.
|
|
test:
|
|
{{ yarn }} test
|
|
|
|
# Run the frontend tests with a coverage report.
|
|
coverage:
|
|
{{ yarn }} ng test --coverage
|
|
|
|
# Run the frontend linter.
|
|
lint:
|
|
{{ yarn }} lint
|
|
|
|
# Check the installed dependency tree.
|
|
deps:
|
|
{{ yarn }} list --depth=0
|
|
|
|
# Run a local dependency audit without forcing a CI-specific severity threshold.
|
|
audit:
|
|
{{ yarn }} npm audit
|
|
|
|
# Run the stricter dependency audit used in CI.
|
|
audit-ci:
|
|
{{ yarn }} npm audit --severity 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
|