Switched to pnpm
This commit is contained in:
+5
-3
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
```
|
||||
|
||||
Generated
-2308
File diff suppressed because it is too large
Load Diff
@@ -24,5 +24,8 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"tonal": "^6.4.0"
|
||||
},
|
||||
"pnpm": {
|
||||
"onlyBuiltDependencies": ["esbuild"]
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+1551
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user