- Configure workspace Git repository with comprehensive .gitignore - Add Odoo as submodule for ERP reference code - Include documentation: SETUP.md, GIT-STRUCTURE.md - Add gitignore templates for projects (backend, frontend, database) - Structure supports independent repos per project/subproject level Workspace includes: - core/ - Reusable patterns, modules, orchestration system - projects/ - Active projects (erp-suite, gamilit, trading-platform, etc.) - knowledge-base/ - Reference code and patterns (includes Odoo submodule) - devtools/ - Development tools and templates - customers/ - Client implementations template 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
51 lines
1.5 KiB
TypeScript
51 lines
1.5 KiB
TypeScript
import { defineConfig } from 'vitest/config';
|
|
import react from '@vitejs/plugin-react-swc';
|
|
import path from 'path';
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
test: {
|
|
globals: true,
|
|
environment: 'jsdom',
|
|
setupFiles: ['./src/test/setup.ts'],
|
|
css: true,
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['text', 'json', 'html', 'lcov'],
|
|
exclude: [
|
|
'node_modules/',
|
|
'src/test/',
|
|
'**/*.d.ts',
|
|
'**/*.config.*',
|
|
'**/mockData/**',
|
|
'**/types/**',
|
|
'**/*.test.{ts,tsx}',
|
|
'**/*.spec.{ts,tsx}',
|
|
],
|
|
all: true,
|
|
lines: 60,
|
|
functions: 60,
|
|
branches: 60,
|
|
statements: 60,
|
|
},
|
|
include: ['src/**/*.{test,spec}.{ts,tsx}'],
|
|
exclude: ['node_modules', 'dist', '.idea', '.git', '.cache'],
|
|
testTimeout: 10000,
|
|
hookTimeout: 10000,
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
'@shared': path.resolve(__dirname, './src/shared'),
|
|
'@components': path.resolve(__dirname, './src/shared/components'),
|
|
'@hooks': path.resolve(__dirname, './src/shared/hooks'),
|
|
'@utils': path.resolve(__dirname, './src/shared/utils'),
|
|
'@types': path.resolve(__dirname, './src/shared/types'),
|
|
'@services': path.resolve(__dirname, './src/services'),
|
|
'@app': path.resolve(__dirname, './src/app'),
|
|
'@features': path.resolve(__dirname, './src/features'),
|
|
'@pages': path.resolve(__dirname, './src/pages'),
|
|
},
|
|
},
|
|
});
|