The pipeline runs lint, format, tests, build, dependency audit and Lighthouse (mobile and desktop, Playwright Chromium on the arm64 runner) on every pull request, push to master and manual run. Pushes to master deploy to test automatically, and any branch can be deployed to test manually. Test is a Raspberry Pi with nginx next to the current WordPress site; the deploy refuses folders containing WordPress. Production deploys are manual and only from release/* branches, over FTP with TLS to the IIS webhost. The IIS web.config and both nginx configs are generated from the same security header list as the Vite servers, with a test that fails when the generated files drift. Adds .gitattributes for LF line endings and pins pnpm through packageManager. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
63 lines
2.3 KiB
JSON
63 lines
2.3 KiB
JSON
{
|
|
"name": "andrea-slop-fotografie",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"packageManager": "pnpm@12.11.2",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc && vite build",
|
|
"preview": "vite preview",
|
|
"postinstall": "chakra typegen ./src/theme.ts",
|
|
"typegen": "chakra typegen ./src/theme.ts",
|
|
"typegen:watch": "chakra typegen ./src/theme.ts --watch",
|
|
"test": "vitest run --coverage",
|
|
"test:watch": "vitest",
|
|
"lint": "eslint .",
|
|
"format:check": "prettier --check .",
|
|
"audit:deps": "pnpm audit --prod --audit-level high",
|
|
"audit:dev": "pnpm audit || echo Meldingen in ontwikkeltools blokkeren niet (NFR-SEC-05)",
|
|
"lighthouse": "lhci autorun && lhci autorun --config=lighthouserc.desktop.cjs",
|
|
"server-config": "node config/writeServerConfig.ts",
|
|
"check": "pnpm lint && pnpm format:check && pnpm test && pnpm build && pnpm audit:deps && pnpm audit:dev && pnpm lighthouse"
|
|
},
|
|
"devDependencies": {
|
|
"@chakra-ui/cli": "^3.37.0",
|
|
"@eslint/js": "^9.39.5",
|
|
"@iconify-icons/ant-design": "2.0.1",
|
|
"@iconify/react": "^6.0.2",
|
|
"@lhci/cli": "^0.15.1",
|
|
"@tanstack/react-router-devtools": "^1.167.2",
|
|
"@tanstack/router-plugin": "^1.168.40",
|
|
"@testing-library/dom": "^10.4.2",
|
|
"@testing-library/jest-dom": "^7.0.1",
|
|
"@testing-library/react": "^16.3.3",
|
|
"@testing-library/user-event": "^14.6.8",
|
|
"@types/react": "^19.3.0",
|
|
"@types/react-dom": "^19.3.0",
|
|
"@vitejs/plugin-react": "^6.1.2",
|
|
"@vitest/coverage-v8": "^5.0.5",
|
|
"axe-core": "^4.14.0",
|
|
"eslint": "^9.39.5",
|
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
"fast-check": "^4.10.2",
|
|
"globals": "^17.13.0",
|
|
"jsdom": "^30.1.3",
|
|
"prettier": "^3.9.9",
|
|
"typescript": "~6.0.2",
|
|
"typescript-eslint": "^8.71.2",
|
|
"vite": "^8.3.0",
|
|
"vitest": "^5.0.5"
|
|
},
|
|
"dependencies": {
|
|
"@chakra-ui/react": "^3.37.0",
|
|
"@emotion/react": "^11.14.0",
|
|
"@fontsource/jost": "^5.3.0",
|
|
"@fontsource/marcellus": "^5.3.0",
|
|
"@tanstack/react-router": "^1.170.39",
|
|
"react": "^19.3.0",
|
|
"react-dom": "^19.3.0"
|
|
}
|
|
}
|