搭建第一个 electron-vite 项目
安装项目模版
bash
npm create @quick-start/electron
npm create @quick-start/electron
bash
npm create @quick-start/electron
Need to install the following packages:
@quick-start/create-electron@1.0.16
Ok to proceed? (y) y
✔ Project name: … electron-app
✔ Select a framework: › react
✔ Add TypeScript? … No / Yes
✔ Add Electron updater plugin? … No / Yes
✔ Enable Electron download mirror proxy? … No / Yes
Scaffolding project in /Electron/electron-app...
Done. Now run:
cd electron-app
npm install
npm run dev
npm create @quick-start/electron
Need to install the following packages:
@quick-start/create-electron@1.0.16
Ok to proceed? (y) y
✔ Project name: … electron-app
✔ Select a framework: › react
✔ Add TypeScript? … No / Yes
✔ Add Electron updater plugin? … No / Yes
✔ Enable Electron download mirror proxy? … No / Yes
Scaffolding project in /Electron/electron-app...
Done. Now run:
cd electron-app
npm install
npm run dev