chore(desktop): add build configuration and output files

- Add electron-vite configuration for main and preload processes
- Add .gitignore to exclude node_modules
- Add compiled output files for main and preload processes
- Add TypeScript configuration for project setup
- Add package-lock.json for dependency management
- Initialize build artifacts for desktop application distribution
This commit is contained in:
2026-02-25 14:59:18 +08:00
parent 9c9997ae64
commit ba24ed57b1
6 changed files with 6446 additions and 0 deletions

26
electron.vite.config.ts Normal file
View File

@@ -0,0 +1,26 @@
import { defineConfig, externalizeDepsPlugin } from 'electron-vite';
import { resolve } from 'path';
export default defineConfig({
main: {
plugins: [externalizeDepsPlugin()],
build: {
rollupOptions: {
input: {
index: resolve(__dirname, 'src/main/main.ts'),
},
},
},
},
preload: {
plugins: [externalizeDepsPlugin()],
build: {
rollupOptions: {
input: {
index: resolve(__dirname, 'src/main/preload.ts'),
},
},
},
},
// No renderer - desktop app loads external web frontend
});