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
This commit is contained in:
Lucàs
2026-05-03 16:26:51 +02:00
parent 397c27e0e4
commit 5d8f9303ae
38 changed files with 4779 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
import { mdsvex } from 'mdsvex';
import adapter from '@sveltejs/adapter-auto';
/** @type {import('@sveltejs/kit').Config} */
const config = {
compilerOptions: {
// Force runes mode for the project, except for libraries. Can be removed in svelte 6.
runes: ({ filename }) => (filename.split(/[/\\]/).includes('node_modules') ? undefined : true)
},
kit: {
// adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list.
// If your environment is not supported, or you settled on a specific environment, switch out the adapter.
// See https://svelte.dev/docs/kit/adapters for more information about adapters.
adapter: adapter()
},
preprocess: [mdsvex({ extensions: ['.svx', '.md'] })],
extensions: ['.svelte', '.svx', '.md']
};
export default config;