feat(electron): scaffold electron-vite project structure

Initialize Wave 1 Electron integration with:
- electron v40.6.1, electron-vite v5.0.0, electron-builder v26.8.1
- Main entry point: electron/main/index.ts with app:// protocol registration
- Preload placeholder: electron/preload/index.ts for Wave 2 IPC
- electron.vite.config.ts with unified renderer chunk splitting strategy
- tsconfig.electron.json with ESNext module support
- Updated package.json with electron dependencies and scripts:
  - electron:dev, electron:build, electron:preview
- All original scripts (dev, build, test, etc) remain unchanged
- TypeScript compilation verified: tsc --noEmit passes
- Ready for Wave 2: IPC bridge and contextBridge exposure
This commit is contained in:
DrSmoothl
2026-03-02 22:49:01 +08:00
parent 91765400f6
commit e6862e227b
6 changed files with 301 additions and 2 deletions

View File

@@ -0,0 +1,7 @@
/**
* Preload script for Electron renderer process
* This script runs in the main process before renderer loads
* Use contextBridge to safely expose APIs
*
* Wave 2 implementation will expose specific IPC methods here
*/