mirror of
https://github.com/tiennm99/mathmax.git
synced 2026-08-06 16:24:54 +00:00
chore: migrate from npm to pnpm
This commit is contained in:
@@ -15,14 +15,17 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 11
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '24'
|
||||
# TODO: add `cache: 'npm'` once package-lock.json is committed.
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Install dependencies
|
||||
# TODO: switch to `npm ci` once package-lock.json is committed.
|
||||
run: npm install --no-audit --no-fund
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Build
|
||||
run: npm run build
|
||||
run: pnpm build
|
||||
|
||||
@@ -21,17 +21,20 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 11
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '24'
|
||||
# TODO: add `cache: 'npm'` once package-lock.json is committed.
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Install dependencies
|
||||
# TODO: switch to `npm ci` once package-lock.json is committed.
|
||||
run: npm install --no-audit --no-fund
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Build
|
||||
run: npm run build
|
||||
run: pnpm build
|
||||
env:
|
||||
SITE_URL: https://tiennm99.github.io
|
||||
SITE_BASE: /mathmax
|
||||
|
||||
@@ -14,15 +14,15 @@ Toán tương tác cho học sinh THCS Việt Nam (lớp 6-9). Số học, Đạ
|
||||
|
||||
## Develop
|
||||
|
||||
Yêu cầu: Node 24+, npm 11+.
|
||||
Yêu cầu: Node 24+, pnpm 11+.
|
||||
|
||||
```sh
|
||||
npm install
|
||||
npm run dev # http://localhost:5173/mathmax/
|
||||
npm run test # Vitest (geom-engine unit tests)
|
||||
npm run check # svelte-check + JSDoc strict
|
||||
npm run build # Static output → build/
|
||||
npm run preview # Serve build/
|
||||
pnpm install
|
||||
pnpm dev # http://localhost:5173/mathmax/
|
||||
pnpm test # Vitest (geom-engine unit tests)
|
||||
pnpm check # svelte-check + JSDoc strict
|
||||
pnpm build # Static output → build/
|
||||
pnpm preview # Serve build/
|
||||
```
|
||||
|
||||
## Deploy
|
||||
|
||||
Generated
-3806
File diff suppressed because it is too large
Load Diff
@@ -3,6 +3,7 @@
|
||||
"version": "0.0.1.0",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"packageManager": "pnpm@11.1.1",
|
||||
"description": "MathMax — Toán tương tác cho học sinh THCS lớp 6-9. Static site.",
|
||||
"scripts": {
|
||||
"dev": "vite dev",
|
||||
|
||||
Generated
+1940
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,2 @@
|
||||
allowBuilds:
|
||||
esbuild: true
|
||||
Reference in New Issue
Block a user