feat(init)!: create sulej.ch

This commit is contained in:
2025-10-12 15:48:10 +02:00
commit 40c353ff4e
33 changed files with 3846 additions and 0 deletions

23
vite.config.ts Normal file
View File

@@ -0,0 +1,23 @@
import { defineConfig } from 'vite';
import { sveltekit } from '@sveltejs/kit/vite';
import { execSync } from 'node:child_process';
import fs from 'node:fs';
const pkg = JSON.parse(fs.readFileSync('./package.json', 'utf-8'));
const version = `v${pkg.version}`;
let commit = 'dev';
try {
commit = execSync('git rev-parse --short HEAD').toString().trim();
} catch {
// ignore if git not available (e.g. CI build image)
}
export default defineConfig({
plugins: [sveltekit()],
define: {
__APP_VERSION__: JSON.stringify(version),
__APP_COMMIT__: JSON.stringify(commit)
},
});