mirror of
https://github.com/tiennm99/thptqg.git
synced 2026-10-11 03:13:48 +00:00
chore: migrate from npm to pnpm
Replace package-lock.json with pnpm-lock.yaml, add packageManager field, update package.json scripts from npm run to pnpm, and update GitHub Actions workflow to use pnpm/action-setup@v4 with frozen-lockfile installs.
This commit is contained in:
1 parent
5bdcc01f60
commit
08e55d98b1
4 files changed
+1974
-3241
No files matched your search
Vendored
+8
-4
@@ -20,16 +20,20 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 11
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: npm
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Build all databases
|
||||
run: npm run build:db:all
|
||||
run: pnpm build:db:all
|
||||
|
||||
- name: Compress databases
|
||||
run: |
|
||||
@@ -38,7 +42,7 @@ jobs:
|
||||
gzip -kf -9 public-old2/thptqg2017.db
|
||||
|
||||
- name: Build all site variants
|
||||
run: npm run build:all
|
||||
run: pnpm build:all
|
||||
|
||||
- name: Drop uncompressed DB files from dist
|
||||
run: |
|
||||
|
||||
Generated
-3235
File diff suppressed because it is too large.
Load diff
+3
-2
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "thptqg2017",
|
||||
"private": true,
|
||||
"packageManager": "pnpm@11.1.1",
|
||||
"version": "1.0.0",
|
||||
"type": "module",
|
||||
"description": "Tra cứu điểm thi THPT QG 2017",
|
||||
@@ -8,12 +9,12 @@
|
||||
"build:db": "node scripts/build-database.js",
|
||||
"build:db:old": "node scripts/build-database-old.js",
|
||||
"build:db:old2": "node scripts/build-database-old2.js",
|
||||
"build:db:all": "npm run build:db && npm run build:db:old && npm run build:db:old2",
|
||||
"build:db:all": "pnpm build:db && pnpm build:db:old && pnpm build:db:old2",
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
"build:old": "node -e \"process.env.VARIANT='old';require('child_process').spawnSync('npx',['vite','build'],{stdio:'inherit',shell:true,env:process.env})\"",
|
||||
"build:old2": "node -e \"process.env.VARIANT='old2';require('child_process').spawnSync('npx',['vite','build'],{stdio:'inherit',shell:true,env:process.env})\"",
|
||||
"build:all": "npm run build && npm run build:old && npm run build:old2",
|
||||
"build:all": "pnpm build && pnpm build:old && pnpm build:old2",
|
||||
"preview": "vite preview",
|
||||
"lint": "eslint ."
|
||||
},
|
||||
|
||||
Generated
+1963
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user