Switched to pnpm
This commit is contained in:
+5
-3
@@ -2,8 +2,10 @@
|
|||||||
FROM node:22-alpine AS build
|
FROM node:22-alpine AS build
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY package*.json ./
|
RUN corepack enable
|
||||||
RUN npm ci
|
|
||||||
|
COPY package.json pnpm-lock.yaml ./
|
||||||
|
RUN pnpm install --frozen-lockfile
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
@@ -11,7 +13,7 @@ COPY . .
|
|||||||
# For a subpath deploy: docker build --build-arg VITE_BASE=/practice/ .
|
# For a subpath deploy: docker build --build-arg VITE_BASE=/practice/ .
|
||||||
ARG VITE_BASE=/
|
ARG VITE_BASE=/
|
||||||
ENV VITE_BASE=$VITE_BASE
|
ENV VITE_BASE=$VITE_BASE
|
||||||
RUN npm run build
|
RUN pnpm run build
|
||||||
|
|
||||||
# --- Serve stage ---------------------------------------------------------------
|
# --- Serve stage ---------------------------------------------------------------
|
||||||
FROM nginx:alpine
|
FROM nginx:alpine
|
||||||
|
|||||||
@@ -12,12 +12,12 @@ scheduler so the metronome never drifts.
|
|||||||
## Develop
|
## Develop
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm install
|
pnpm install
|
||||||
npm run dev # local dev server
|
pnpm dev # local dev server
|
||||||
npm run check # svelte-check (typecheck)
|
pnpm check # svelte-check (typecheck)
|
||||||
npm test # vitest (scheduler timing + music-theory correctness)
|
pnpm test # vitest (scheduler timing + music-theory correctness)
|
||||||
npm run build # typecheck + production build to dist/
|
pnpm build # typecheck + production build to dist/
|
||||||
npm run preview # serve the built dist/ locally
|
pnpm preview # serve the built dist/ locally
|
||||||
```
|
```
|
||||||
|
|
||||||
## Deploy
|
## 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 = '/'`.
|
- Dedicated domain / served at the root: default, `base = '/'`.
|
||||||
- Subpath (e.g. `https://example.com/practice/`): build with
|
- Subpath (e.g. `https://example.com/practice/`): build with
|
||||||
`VITE_BASE=/practice/ npm run build`.
|
`VITE_BASE=/practice/ pnpm build`.
|
||||||
|
|
||||||
### Cloudflare Pages
|
### 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:
|
`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": {
|
"dependencies": {
|
||||||
"tonal": "^6.4.0"
|
"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