Establishes frontend unit testing infra (jsdom env, RTL, jest-dom matchers, common Radix/jsdom polyfills) and seeds it with tests for lib/utils.ts, lib/photo-utils.ts, hooks/useFocusTrap.ts, and ThemeToggle.tsx (46 tests total).
79 lines
2.6 KiB
JSON
79 lines
2.6 KiB
JSON
{
|
|
"name": "punimtag-viewer",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "./scripts/with-sharp-libpath.sh next dev -p 3001",
|
|
"prebuild": "npm run prisma:generate:all",
|
|
"build": "./scripts/with-sharp-libpath.sh next build",
|
|
"start": "./scripts/with-sharp-libpath.sh next start",
|
|
"start:3001": "PORT=3001 ./scripts/with-sharp-libpath.sh next start",
|
|
"lint": "next lint",
|
|
"type-check": "tsc --noEmit",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"test:coverage": "vitest run --coverage",
|
|
"prisma:generate": "prisma generate",
|
|
"prisma:generate:auth": "prisma generate --schema=prisma/schema-auth.prisma",
|
|
"prisma:generate:all": "prisma generate && prisma generate --schema=prisma/schema-auth.prisma",
|
|
"check:permissions": "tsx scripts/check-database-permissions.ts",
|
|
"setup:databases": "./scripts/check-and-create-databases.sh",
|
|
"install:deps": "./scripts/install-dependencies.sh",
|
|
"setup": "./run-setup.sh"
|
|
},
|
|
"dependencies": {
|
|
"@prisma/client": "^6.19.0",
|
|
"@radix-ui/react-checkbox": "^1.3.3",
|
|
"@radix-ui/react-dialog": "^1.1.15",
|
|
"@radix-ui/react-popover": "^1.1.15",
|
|
"@radix-ui/react-select": "^2.2.6",
|
|
"@radix-ui/react-slot": "^1.2.4",
|
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
"@tanstack/react-query": "^5.90.9",
|
|
"@types/bcryptjs": "^2.4.6",
|
|
"@types/jszip": "^3.4.0",
|
|
"bcryptjs": "^3.0.3",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"date-fns": "^4.1.0",
|
|
"framer-motion": "^12.23.24",
|
|
"jszip": "^3.10.1",
|
|
"lucide-react": "^0.553.0",
|
|
"next": "^16.1.1",
|
|
"next-auth": "^5.0.0-beta.30",
|
|
"next-themes": "^0.4.6",
|
|
"nodemailer": "^7.0.13",
|
|
"prisma": "^6.19.0",
|
|
"react": "19.2.0",
|
|
"react-day-picker": "^9.11.1",
|
|
"react-dom": "19.2.0",
|
|
"react-photo-album": "^3.2.1",
|
|
"resend": "^6.5.2",
|
|
"sharp": "^0.34.5",
|
|
"tailwind-merge": "^3.4.0",
|
|
"yet-another-react-lightbox": "^3.25.0"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/postcss": "^4",
|
|
"@testing-library/jest-dom": "^6.9.1",
|
|
"@testing-library/react": "^16.3.2",
|
|
"@testing-library/user-event": "^14.6.1",
|
|
"@types/node": "^20",
|
|
"@types/nodemailer": "^7.0.11",
|
|
"@types/react": "^19",
|
|
"@types/react-dom": "^19",
|
|
"@vitejs/plugin-react": "^6.0.3",
|
|
"dotenv": "^17.2.3",
|
|
"eslint": "^9",
|
|
"eslint-config-next": "16.0.3",
|
|
"jsdom": "^29.1.1",
|
|
"node-addon-api": "^8.5.0",
|
|
"node-gyp": "^12.1.0",
|
|
"tailwindcss": "^4",
|
|
"tsx": "^4.20.6",
|
|
"tw-animate-css": "^1.4.0",
|
|
"typescript": "^5",
|
|
"vitest": "^4.1.10"
|
|
}
|
|
}
|