chore: establish typed SvelteKit frontend foundation

This commit is contained in:
2026-08-20 19:47:25 +03:30
parent e1e4ed8467
commit c719a11ad7
18 changed files with 5705 additions and 1 deletions

24
vite.config.ts Normal file
View File

@@ -0,0 +1,24 @@
import tailwindcss from '@tailwindcss/vite';
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vitest/config';
export default defineConfig({
plugins: [tailwindcss(), sveltekit()],
server: {
host: '127.0.0.1',
port: 5173,
proxy: {
'/api': {
target: 'http://127.0.0.1:8080',
changeOrigin: false,
},
},
},
test: {
environment: 'jsdom',
include: ['src/**/*.test.ts'],
setupFiles: ['./vitest-setup.ts'],
pool: 'threads',
maxWorkers: 1,
},
});