mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-15 06:21:09 +02:00
- Add BUILD_TIME and BUILD_HASH exports to all version.ts files - Add getBuildDefines() to all vite.config.ts for compile-time injection - Add buildTime prop to shared LoginPage component - Display formatted date/time next to version number (e.g. "v1.0.0 · 21.03.2026 10:30") - Add app.d.ts type declarations for __BUILD_TIME__ and __BUILD_HASH__ Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
40 lines
995 B
TypeScript
40 lines
995 B
TypeScript
/// <reference types="vitest/config" />
|
|
import { sveltekit } from '@sveltejs/kit/vite';
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
import { defineConfig } from 'vite';
|
|
import { SvelteKitPWA } from '@vite-pwa/sveltekit';
|
|
import { createOfflineFirstPWAConfig } from '@manacore/shared-pwa';
|
|
import { MANACORE_SHARED_PACKAGES, getBuildDefines } from '@manacore/shared-vite-config';
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
tailwindcss(),
|
|
sveltekit(),
|
|
SvelteKitPWA(
|
|
createOfflineFirstPWAConfig({
|
|
name: 'Calendar - Kalender',
|
|
shortName: 'Calendar',
|
|
description: 'Kalender und Terminverwaltung',
|
|
themeColor: '#3b82f6',
|
|
})
|
|
),
|
|
],
|
|
server: {
|
|
port: 5179,
|
|
strictPort: true,
|
|
},
|
|
ssr: {
|
|
noExternal: [...MANACORE_SHARED_PACKAGES, '@calendar/shared'],
|
|
},
|
|
optimizeDeps: {
|
|
exclude: [...MANACORE_SHARED_PACKAGES, '@calendar/shared'],
|
|
},
|
|
test: {
|
|
environment: 'jsdom',
|
|
include: ['src/**/*.test.ts'],
|
|
globals: true,
|
|
},
|
|
define: {
|
|
...getBuildDefines(),
|
|
},
|
|
});
|