mirror of
https://github.com/abinthomasonline/repo2txt.git
synced 2026-11-16 01:07:04 +03:00
This commit establishes the complete development infrastructure for repo2txt v2.0 with modern tooling and architecture. ## Infrastructure Setup - Vite + React 19 + TypeScript 5.x - TailwindCSS 3.x with dark mode support - Testing: Vitest (unit) + Playwright (E2E) - Code quality: ESLint + Prettier + strict TypeScript ## Project Structure Created complete folder structure: - src/features/ - Feature modules (GitHub, local, GitLab, Azure) - src/components/ - Reusable UI components - src/lib/ - Core business logic - src/hooks/ - Custom React hooks - src/store/ - Zustand state management - src/types/ - TypeScript type definitions - tests/ - Comprehensive test suite structure ## State Management Implemented Zustand store with slices: - Theme management (light/dark/system with persistence) - Provider management (GitHub, local, etc.) - File tree state (selections, filters, gitignore) - UI state (output, token counts, loading states) ## Core Features - Theme system with light/dark/system modes - Automatic theme persistence and system preference detection - Path aliases for clean imports (@/, @/components, etc.) - Secure token storage (sessionStorage vs localStorage) - Code splitting configuration - CSS variables for theming ## UI Components - Button component with variants and sizes - ThemeToggle with visual feedback - App shell with header, main content, and footer - Responsive layout with mobile-first approach - GitHub link in header ## Configuration Files - vite.config.ts: Path aliases, build optimizations, code splitting - vitest.config.ts: Unit test configuration with coverage - playwright.config.ts: E2E tests across browsers and devices - tailwind.config.js: Dark mode, custom colors - tsconfig: Strict mode, path aliases - ESLint + Prettier for code quality ## Security Improvements - Tokens in sessionStorage instead of localStorage - Prepared for encryption layer - Input validation ready - XSS prevention patterns ## Developer Experience - Hot module replacement (HMR) - Fast builds with Vite - TypeScript strict mode for type safety - Comprehensive npm scripts for all tasks - DevTools support for Zustand ## Next Steps - Phase 1: Core architecture and provider system - Phase 2: GitHub provider implementation - Phase 3: Local provider implementation All foundational work is complete and ready for feature development! Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
27 lines
653 B
JSON
27 lines
653 B
JSON
{
|
|
"compilerOptions": {
|
|
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
|
"target": "ES2023",
|
|
"lib": ["ES2023"],
|
|
"module": "ESNext",
|
|
"types": ["node"],
|
|
"skipLibCheck": true,
|
|
|
|
/* Bundler mode */
|
|
"moduleResolution": "bundler",
|
|
"allowImportingTsExtensions": true,
|
|
"verbatimModuleSyntax": true,
|
|
"moduleDetection": "force",
|
|
"noEmit": true,
|
|
|
|
/* Linting */
|
|
"strict": true,
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true,
|
|
"erasableSyntaxOnly": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"noUncheckedSideEffectImports": true
|
|
},
|
|
"include": ["vite.config.ts"]
|
|
}
|