- electron-forge 7 + Vite plugin (vite-typescript template) - React 19 + TypeScript 5 strict mode - TanStack Router with file-based routing (4 routes: /, /timeline, /tasks, /projects) - Tailwind CSS 3 + PostCSS with Figma design tokens (sidebar, primary, muted) - Framer Motion, Lucide React, shadcn/ui utilities (cn, CVA, clsx, twMerge) - AppShell layout: 240px sidebar with collapse toggle, active route highlighting - Vite configs use .mts extension to avoid ESM/CJS conflict with electron-forge - Full package build verified (linux x64) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
21 lines
500 B
TypeScript
21 lines
500 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import { TanStackRouterVite } from '@tanstack/router-vite-plugin';
|
|
import path from 'path';
|
|
|
|
// https://vitejs.dev/config
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
TanStackRouterVite({
|
|
routesDirectory: './src/renderer/routes',
|
|
generatedRouteTree: './src/renderer/routeTree.gen.ts',
|
|
}),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src/renderer'),
|
|
},
|
|
},
|
|
});
|