fix: npm -> pnpm
This commit is contained in:
parent
c06b184a2d
commit
0de8143aa3
8
Makefile
8
Makefile
@ -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 -----------------------------------------------------------
|
||||
|
||||
|
||||
@ -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",
|
||||
|
||||
7811
frontend/package-lock.json
generated
7811
frontend/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -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
@ -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",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user