chore(repo): migrate from yarn to pnpm (#1598)

This commit is contained in:
Alex
2026-06-05 08:32:57 +01:00
committed by GitHub
parent f6661fec0b
commit e83a143c36
28 changed files with 11649 additions and 14155 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
# Node
/node_modules
npm-debug.log
yarn-error.log
pnpm-debug.log
# IDEs and editors
.idea/
-5
View File
@@ -1,5 +0,0 @@
nodeLinker: node-modules
nmMode: hardlinks-local
enableGlobalCache: false
cacheFolder: .yarn/cache
npmMinimalAgeGate: 4320
+22 -22
View File
@@ -1,6 +1,6 @@
set shell := ["bash", "-eu", "-o", "pipefail", "-c"]
yarn := "env YARN_ENABLE_GLOBAL_CACHE=0 YARN_CACHE_FOLDER=../.yarn/cache corepack yarn"
pnpm := "pnpm"
# Show the frontend recipes available in this directory.
help:
@@ -8,87 +8,87 @@ help:
# Install or update frontend dependencies for local development.
install:
{{ yarn }} install
{{ pnpm }} install
# Install the frontend dependencies exactly as CI does.
install-ci:
{{ yarn }} install --immutable
{{ pnpm }} install --frozen-lockfile
# Run the Angular development server.
dev:
{{ yarn }} dev
{{ pnpm }} run dev
# Run the Angular development server with the default `start` script.
start:
{{ yarn }} start
{{ pnpm }} run start
# Build the production frontend bundle.
build:
CI=1 NG_CLI_ANALYTICS=false {{ yarn }} build:prod
CI=1 NG_CLI_ANALYTICS=false {{ pnpm }} run build:prod
# Build the frontend continuously in development mode.
watch:
{{ yarn }} watch
{{ pnpm }} run watch
# Run the frontend test suite.
test:
{{ yarn }} test
{{ pnpm }} run test
# Run the frontend tests with a coverage report.
coverage:
{{ yarn }} coverage
{{ pnpm }} run coverage
# Summarize the latest frontend coverage report by global and feature buckets.
coverage-summary:
{{ yarn }} coverage:summary
{{ pnpm }} run coverage:summary
# Install the Chromium browser used by the frontend Playwright suite.
e2e-install:
{{ yarn }} e2e:install
{{ pnpm }} run e2e:install
# Run the frontend Playwright suite.
e2e:
{{ yarn }} e2e
{{ pnpm }} run e2e
# Run a single frontend Playwright spec file.
e2e-file spec:
{{ yarn }} e2e {{ spec }}
{{ pnpm }} run e2e {{ spec }}
# List the tests contained in a single frontend Playwright spec file.
e2e-list spec:
{{ yarn }} e2e {{ spec }} --list
{{ pnpm }} run e2e {{ spec }} --list
# Start the Angular dev server for Playwright against a fixed host and port.
e2e-dev host='127.0.0.1' port='4301':
{{ yarn }} ng serve --host {{ host }} --port {{ port }} --configuration development --watch=false
{{ pnpm }} exec ng serve --host {{ host }} --port {{ port }} --configuration development --watch=false
# Run the frontend linter.
lint:
{{ yarn }} lint:eslint
{{ pnpm }} run lint:eslint
# Run the frontend stylesheet linter.
stylelint:
{{ yarn }} lint:styles
{{ pnpm }} run lint:styles
# Run the frontend stylesheet linter with autofix enabled.
stylelint-fix:
{{ yarn }} lint:styles:fix
{{ pnpm }} run lint:styles:fix
# Run the frontend TypeScript typechecker without emitting build output.
typecheck:
{{ yarn }} typecheck
{{ pnpm }} run typecheck
# Check the installed dependency tree.
deps:
{{ yarn }} info -R --name-only
{{ pnpm }} list --depth Infinity
# Run a local dependency audit without forcing a CI-specific severity threshold.
audit:
{{ yarn }} npm audit
{{ pnpm }} audit
# Run the stricter dependency audit used in CI.
audit-ci:
{{ yarn }} npm audit --severity critical
{{ pnpm }} audit --audit-level critical
# Run the standard local frontend verification pass.
check: deps typecheck lint stylelint build test
+2 -11
View File
@@ -1,7 +1,6 @@
{
"name": "grimmory",
"version": "0.0.0",
"packageManager": "yarn@4.10.3",
"scripts": {
"ng": "ng",
"start": "ng serve",
@@ -15,10 +14,10 @@
"e2e": "playwright test",
"e2e:install": "playwright install chromium",
"typecheck": "tsc --noEmit -p tsconfig.app.json",
"lint": "yarn lint:eslint && yarn lint:styles",
"lint": "pnpm run lint:eslint && pnpm run lint:styles",
"lint:eslint": "ng lint",
"lint:styles": "stylelint \"src/**/*.scss\" \"src/*.scss\"",
"lint:styles:fix": "yarn lint:styles --fix"
"lint:styles:fix": "pnpm run lint:styles --fix"
},
"private": true,
"dependencies": {
@@ -85,13 +84,5 @@
"typescript-eslint": "^8.60.0",
"vitest": "^4.1.7",
"vitest-canvas-mock": "^1.1.4"
},
"overrides": {
"minimatch": "^10.2.1",
"ajv": "^8.18.0",
"eslint": {
"ajv": "^6.14.0"
},
"undici": "^7.24.1"
}
}
+1 -1
View File
@@ -34,4 +34,4 @@ PLAYWRIGHT_PORT=4301 just --justfile frontend/Justfile --working-directory front
- Do not add browser specs that depend on broad route shims copied from other
scenarios.
- Use the `frontend/Justfile` entrypoints for browser install, server startup,
and spec execution. Do not invoke Yarn directly from docs or ad hoc commands.
and spec execution. Do not invoke pnpm directly from docs or ad hoc commands.
@@ -1,6 +1,5 @@
import {ElementRef, Signal, computed, effect, signal} from '@angular/core';
import {injectVirtualizer} from '@tanstack/angular-virtual';
import {observeElementRect, type Rect, type VirtualItem} from '@tanstack/virtual-core';
import {injectVirtualizer, observeElementRect, type Rect, type VirtualItem} from '@tanstack/angular-virtual';
const DEFAULT_OVERSCAN_ROWS = 2;
const DEFAULT_ITEM_SIZE = 1;
-9914
View File
File diff suppressed because it is too large Load Diff