Files
cv/package.json
T
dong.nguyen 0c4aea32b5 feat(seo): real metadata, JSON-LD, robots.txt and a build-time sitemap
index.html advertised nothing: no title, no description, no Open Graph, no canonical. The head now carries both theme-color values, an OG block with an absolute 1200x1600 image, a Twitter card and a Person JSON-LD block with sameAs and a PostalAddress. src/data/site.ts holds the canonical origin; generate-sitemap.ts writes dist/sitemap.xml from navPaths plus the project list (10 urls) and fails the build if dist/index.html no longer contains siteUrl, because an HTML head cannot import TypeScript and the origin is therefore written twice by hand. Chained into pnpm build so dist/ is complete before the deploy workflow uploads it.
2026-10-18 23:45:39 +07:00

34 lines
988 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=en && pnpm tsx scripts/generate-resume.ts --lang=vi",
"build:resume-preview": "pnpm tsx scripts/generate-resume.ts --preview",
"lint": "oxlint",
"sitemap": "pnpm tsx scripts/generate-sitemap.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"
}
}