Switched to pnpm

This commit is contained in:
2026-07-23 10:40:33 +02:00
parent 083744203b
commit df2f1b11ea
5 changed files with 1567 additions and 2319 deletions
+5 -3
View File
@@ -2,8 +2,10 @@
FROM node:22-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm ci
RUN corepack enable
COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
COPY . .
@@ -11,7 +13,7 @@ COPY . .
# For a subpath deploy: docker build --build-arg VITE_BASE=/practice/ .
ARG VITE_BASE=/
ENV VITE_BASE=$VITE_BASE
RUN npm run build
RUN pnpm run build
# --- Serve stage ---------------------------------------------------------------
FROM nginx:alpine
+8 -8
View File
@@ -12,12 +12,12 @@ scheduler so the metronome never drifts.
## Develop
```bash
npm install
npm run dev # local dev server
npm run check # svelte-check (typecheck)
npm test # vitest (scheduler timing + music-theory correctness)
npm run build # typecheck + production build to dist/
npm run preview # serve the built dist/ locally
pnpm install
pnpm dev # local dev server
pnpm check # svelte-check (typecheck)
pnpm test # vitest (scheduler timing + music-theory correctness)
pnpm build # typecheck + production build to dist/
pnpm preview # serve the built dist/ locally
```
## Deploy
@@ -30,11 +30,11 @@ The build is fully static (`dist/`). Because the app uses **path routing**
- Dedicated domain / served at the root: default, `base = '/'`.
- Subpath (e.g. `https://example.com/practice/`): build with
`VITE_BASE=/practice/ npm run build`.
`VITE_BASE=/practice/ pnpm build`.
### Cloudflare Pages
Framework preset: none. Build command `npm run build`, output directory `dist`.
Framework preset: none. Build command `pnpm build`, output directory `dist`.
`public/_redirects` (already included) provides the SPA fallback:
```
-2308
View File
File diff suppressed because it is too large Load Diff
+3
View File
@@ -24,5 +24,8 @@
},
"dependencies": {
"tonal": "^6.4.0"
},
"pnpm": {
"onlyBuiltDependencies": ["esbuild"]
}
}
+1551
View File
File diff suppressed because it is too large Load Diff