fix: npm -> pnpm

This commit is contained in:
Loïc Gremaud 2026-07-17 18:04:30 +02:00
parent c06b184a2d
commit 0de8143aa3
Signed by: Legrems
GPG Key ID: D4620E6DF3E0121D
6 changed files with 3179 additions and 7826 deletions

View File

@ -110,8 +110,8 @@ cron-test: ## Run the reminder job once, reporting what it would send
# --- Frontend --------------------------------------------------------------
.PHONY: frontend
frontend: ## Install npm dependencies and build the Vue frontend
cd frontend && npm install && npm run build
frontend: ## Install frontend dependencies (pnpm) and build the Vue frontend
cd frontend && pnpm install && pnpm run build
# Only build when no bundle exists yet: tests render the shell template, which
# needs the Vite manifest, but should not pay for a rebuild on every run.
@ -120,11 +120,11 @@ frontend/dist/.vite/manifest.json:
.PHONY: front-dev
front-dev: ## Run the Vite dev server with hot reload (pair with: DJANGO_VITE_DEV=1 make run)
cd frontend && npm run dev
cd frontend && pnpm run dev
.PHONY: api-client
api-client: ## Regenerate the typed TS API client (needs 'make run' in another terminal)
cd frontend && npm run generate:api
cd frontend && pnpm run generate:api
# --- Development -----------------------------------------------------------

View File

@ -1,7 +1,7 @@
import { defineConfig } from "@hey-api/openapi-ts";
// Reads the schema from the running dev server: start `make run` first, then
// `npm run generate:api` (or `make api-client`) after changing tracker/api.py.
// `pnpm run generate:api` (or `make api-client`) after changing tracker/api.py.
export default defineConfig({
input: "http://127.0.0.1:8000/api/openapi.json",
output: "src/api",

File diff suppressed because it is too large Load Diff

View File

@ -3,6 +3,10 @@
"private": true,
"version": "1.0.0",
"type": "module",
"packageManager": "pnpm@10.33.0",
"pnpm": {
"onlyBuiltDependencies": ["esbuild"]
},
"scripts": {
"dev": "vite",
"build": "vue-tsc --noEmit && tsc -p tsconfig.sw.json && vite build",

File diff suppressed because it is too large Load Diff

View File

@ -143,8 +143,8 @@ STATIC_ROOT = BASE_DIR / "static"
STATICFILES_DIRS = [BASE_DIR / "assets", BASE_DIR / "frontend" / "dist"]
# The Vue frontend, served through django-vite's template tags. With
# DJANGO_VITE_DEV=1 the tags point at the Vite dev server (npm run dev) for hot
# reload; otherwise they resolve hashed files from the built manifest.
# DJANGO_VITE_DEV=1 the tags point at the Vite dev server (make front-dev) for
# hot reload; otherwise they resolve hashed files from the built manifest.
DJANGO_VITE = {
"default": {
"dev_mode": os.environ.get("DJANGO_VITE_DEV", "0") == "1",