mirror of
https://github.com/dong-nz/cv.git
synced 2026-11-22 16:10:40 +07:00
Phase 1 of spec-v4-live-edit: data/i18n foundation, no visible feature.
- src/data/{profile,skills,experience,projects}.json: language-neutral
structure documents with thin typed loaders; all prose moved to
src/i18n/locales/{vi,en}/content.json; chrome strings to ui.json
- src/i18n/: dict-types, cross-document validator (runs at module load and
via pnpm validate:content), loader joining structure+text once (UI/CONTENT),
I18nProvider/useI18n mounted in App under LanguageProvider
- all 22 consumers read joined records via useI18n(); field.ts and
strings.ts deleted; *En field pairs removed from the domain types
- hero tagline renders as plain-text segments (D9); philosophy quotes as
paragraph arrays; footer display name now localizes per language (D6)
- resume generator consumes UI/CONTENT; generated resume HTML verified
byte-identical (EN+VI) before/after the migration
- AGENTS.md and v3/v3-i18n + v4 specs updated; deploy.yml concurrency group
35 lines
1004 B
JSON
35 lines
1004 B
JSON
{
|
|
"name": "portfolio",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc -b && vite build && pnpm tsx scripts/generate-sitemap.ts",
|
|
"build:resume": "pnpm tsx scripts/generate-resume.ts",
|
|
"build:resume-all": "pnpm tsx scripts/generate-resume.ts --lang=all",
|
|
"build:resume-preview": "pnpm tsx scripts/generate-resume.ts --preview",
|
|
"lint": "oxlint",
|
|
"sitemap": "pnpm tsx scripts/generate-sitemap.ts",
|
|
"validate:content": "pnpm tsx scripts/validate-content.ts",
|
|
"preview": "vite preview"
|
|
},
|
|
"dependencies": {
|
|
"motion": "^14.0.0",
|
|
"react": "^19.2.8",
|
|
"react-dom": "^19.2.8",
|
|
"react-router": "8.4.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^24.13.3",
|
|
"@types/react": "^19.2.18",
|
|
"@types/react-dom": "^19.2.7",
|
|
"@vitejs/plugin-react": "^6.1.1",
|
|
"oxlint": "^1.81.0",
|
|
"playwright": "^1.64.0",
|
|
"tsx": "^4.23.15",
|
|
"typescript": "~6.0.2",
|
|
"vite": "^8.3.0"
|
|
}
|
|
}
|