Initial commit: SvelteKit application with modular libraries
Add comprehensive library system for internationalization, logging,
formatting, and UI state management:
- ling: i18n library with translation keys, plural rules, and JSON serialization
- logr: logging system with levels, filters, history, and transports
- glob: number (numr), date (dati), currency (curr), and unit (unit) formatters
- actx: application context integrating all modules with Svelte 5 reactivity
- uiux: reactive UI state for theme, toasts, modals, menus, and breakpoints
Features:
- 247 passing tests across 4 test suites
- Svelte 5 runes ($state) for reactive context
- Lazy initialization for optional modules
- Type-safe configuration with TypeScript
- Locale-aware formatting using Intl APIs
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
7 months ago
|
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
|
|
|
import { defineConfig } from 'vitest/config';
|
|
|
|
|
import { playwright } from '@vitest/browser-playwright';
|
|
|
|
|
import { sveltekit } from '@sveltejs/kit/vite';
|
|
|
|
|
import { fileURLToPath } from 'url';
|
|
|
|
|
import { resolve, dirname } from 'path';
|
|
|
|
|
|
|
|
|
|
// __dirname no existe en ESM — se reconstruye así
|
|
|
|
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
plugins: [tailwindcss(), sveltekit()],
|
|
|
|
|
|
|
|
|
|
resolve: {
|
|
|
|
|
alias: {
|
|
|
|
|
// @/ → src/
|
|
|
|
|
'@': resolve(__dirname, 'src'),
|
|
|
|
|
// @/ling → src/lib/ling
|
|
|
|
|
'@/ling': resolve(__dirname, 'src/lib/ling'),
|
|
|
|
|
// @/logr → src/lib/logr
|
|
|
|
|
'@/logr': resolve(__dirname, 'src/lib/logr'),
|
|
|
|
|
// @/glob → src/lib/glob
|
|
|
|
|
'@/glob': resolve(__dirname, 'src/lib/glob'),
|
|
|
|
|
// @/actx → src/lib/actx
|
|
|
|
|
'@/actx': resolve(__dirname, 'src/lib/actx'),
|
|
|
|
|
// @/uiux → src/lib/uiux
|
|
|
|
|
'@/uiux': resolve(__dirname, 'src/lib/uiux'),
|
refactor: reestructura actx/glob/uiux, agrega librería acel y rutas de test
- Refactoriza actx eliminando nr_actx/nr_engine, unifica en engine.svelte.ts
- Actualiza motores de glob (curr, dati, numr, unit) con variantes .svelte.ts
- Agrega librería de componentes UI acel (accordion, button, collapsible, modal)
- Configura SPA pura: ssr=false, prerender=false, adapter-static con fallback
- Agrega rutas de test para accordion, collapsible y modal
- Corrige doble namespace en accordion/index.ts
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
7 months ago
|
|
|
// $uix → src/uix
|
|
|
|
|
'$uix': resolve(__dirname, 'src/uix'),
|
|
|
|
|
// $acel → src/uix/acel
|
|
|
|
|
'$acel': resolve(__dirname, 'src/uix/acel'),
|
Initial commit: SvelteKit application with modular libraries
Add comprehensive library system for internationalization, logging,
formatting, and UI state management:
- ling: i18n library with translation keys, plural rules, and JSON serialization
- logr: logging system with levels, filters, history, and transports
- glob: number (numr), date (dati), currency (curr), and unit (unit) formatters
- actx: application context integrating all modules with Svelte 5 reactivity
- uiux: reactive UI state for theme, toasts, modals, menus, and breakpoints
Features:
- 247 passing tests across 4 test suites
- Svelte 5 runes ($state) for reactive context
- Lazy initialization for optional modules
- Type-safe configuration with TypeScript
- Locale-aware formatting using Intl APIs
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
7 months ago
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
test: {
|
|
|
|
|
expect: { requireAssertions: true },
|
|
|
|
|
projects: [
|
|
|
|
|
{
|
|
|
|
|
extends: './vite.config.ts',
|
|
|
|
|
test: {
|
|
|
|
|
name: 'client',
|
|
|
|
|
browser: {
|
|
|
|
|
enabled: true,
|
|
|
|
|
provider: playwright(),
|
|
|
|
|
instances: [{ browser: 'chromium', headless: true }]
|
|
|
|
|
},
|
|
|
|
|
include: ['src/**/*.svelte.{test,spec}.{js,ts}'],
|
|
|
|
|
exclude: ['src/lib/server/**']
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
extends: './vite.config.ts',
|
|
|
|
|
resolve: {
|
|
|
|
|
alias: {
|
|
|
|
|
'@': resolve(__dirname, 'src'),
|
|
|
|
|
'@/ling': resolve(__dirname, 'src/lib/ling'),
|
|
|
|
|
'@/logr': resolve(__dirname, 'src/lib/logr'),
|
|
|
|
|
'@/glob': resolve(__dirname, 'src/lib/glob'),
|
|
|
|
|
'@/actx': resolve(__dirname, 'src/lib/actx'),
|
|
|
|
|
'@/uiux': resolve(__dirname, 'src/lib/uiux'),
|
refactor: reestructura actx/glob/uiux, agrega librería acel y rutas de test
- Refactoriza actx eliminando nr_actx/nr_engine, unifica en engine.svelte.ts
- Actualiza motores de glob (curr, dati, numr, unit) con variantes .svelte.ts
- Agrega librería de componentes UI acel (accordion, button, collapsible, modal)
- Configura SPA pura: ssr=false, prerender=false, adapter-static con fallback
- Agrega rutas de test para accordion, collapsible y modal
- Corrige doble namespace en accordion/index.ts
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
7 months ago
|
|
|
'$uix': resolve(__dirname, 'src/uix'),
|
Initial commit: SvelteKit application with modular libraries
Add comprehensive library system for internationalization, logging,
formatting, and UI state management:
- ling: i18n library with translation keys, plural rules, and JSON serialization
- logr: logging system with levels, filters, history, and transports
- glob: number (numr), date (dati), currency (curr), and unit (unit) formatters
- actx: application context integrating all modules with Svelte 5 reactivity
- uiux: reactive UI state for theme, toasts, modals, menus, and breakpoints
Features:
- 247 passing tests across 4 test suites
- Svelte 5 runes ($state) for reactive context
- Lazy initialization for optional modules
- Type-safe configuration with TypeScript
- Locale-aware formatting using Intl APIs
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
7 months ago
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
test: {
|
|
|
|
|
name: 'server',
|
|
|
|
|
environment: 'node',
|
|
|
|
|
include: ['src/**/*.{test,spec}.{js,ts}'],
|
|
|
|
|
exclude: ['src/**/*.svelte.{test,spec}.{js,ts}']
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
});
|