Files
game-lib/apps/web/package.json
Lucàs 5d8f9303ae feat: initialize SvelteKit web application with Paraglide and Playwright integration
- Added package.json for project dependencies and scripts
- Created Playwright configuration for end-to-end testing
- Set up Inlang project settings for localization
- Defined app types in app.d.ts
- Created basic HTML structure in app.html
- Implemented server hooks for localization in hooks.server.ts
- Added hooks for URL rerouting in hooks.ts
- Included favicon asset
- Established library index for $lib alias
- Developed Vitest example components and tests
- Created layout and page components for routing
- Implemented demo pages for Paraglide and Playwright
- Added global CSS styles for layout
- Configured Vite for project build and testing
- Included robots.txt for web crawling instructions
- Set up TypeScript configuration for the project
2026-05-03 16:26:51 +02:00

51 lines
1.5 KiB
JSON

{
"name": "web",
"private": true,
"version": "0.0.1",
"type": "module",
"scripts": {
"dev": "vite dev",
"build": "vite build",
"preview": "vite preview",
"prepare": "svelte-kit sync || echo ''",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --check . && eslint .",
"format": "prettier --write .",
"test:unit": "vitest",
"test": "npm run test:unit -- --run && npm run test:e2e",
"test:e2e": "playwright install && playwright test"
},
"devDependencies": {
"@eslint/compat": "^2.0.4",
"@eslint/js": "^10.0.1",
"@inlang/paraglide-js": "^2.15.2",
"@playwright/test": "^1.59.1",
"@sveltejs/adapter-auto": "^7.0.1",
"@sveltejs/kit": "^2.57.0",
"@sveltejs/vite-plugin-svelte": "^7.0.0",
"@tailwindcss/forms": "^0.5.11",
"@tailwindcss/typography": "^0.5.19",
"@tailwindcss/vite": "^4.2.2",
"@types/node": "^22",
"@vitest/browser-playwright": "^4.1.3",
"eslint": "^10.2.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-svelte": "^3.17.0",
"globals": "^17.4.0",
"mdsvex": "^0.12.7",
"playwright": "^1.59.1",
"prettier": "^3.8.1",
"prettier-plugin-svelte": "^3.5.1",
"prettier-plugin-tailwindcss": "^0.7.2",
"svelte": "^5.55.2",
"svelte-check": "^4.4.6",
"tailwindcss": "^4.2.2",
"typescript": "^6.0.2",
"typescript-eslint": "^8.58.1",
"vite": "^8.0.7",
"vitest": "^4.1.3",
"vitest-browser-svelte": "^2.1.0"
}
}