React-TypeScript-Electron 示例:创建 React 应用程序与 Electron Builder

该示例使用 Electron Builder 和 Create React App,并带有 --typescript 选项。

关键功能和更改包括:

  • TypeScript 支持
  • Electron 主进程源代码的 TypeScript 支持
  • Electron 应用程序的热重载支持
  • Electron Builder 支持

可用脚本:

  • npm run electron:dev:在开发模式下运行 Electron 应用程序。当您在 electron 目录中进行编辑时,Electron 应用程序将重新加载,并且您会在控制台中看到任何绒毛错误。
zip
react-typescript-electron-sample-with-create-react-app-and-electron-builder-master.zip 预估大小:23个文件
folder
react-typescript-electron-sample-with-create-react-app-and-electron-builder-master 文件夹
folder
electron 文件夹
file
main.ts 1KB
file
tsconfig.json 249B
file
package.json 2KB
file
package-lock.json 709KB
folder
src 文件夹
file
App.css 306B
file
react-app-env.d.ts 40B
file
logo.svg 8KB
file
index.tsx 452B
file
serviceWorker.ts 5KB
file
App.tsx 569B
file
App.test.tsx 248B
file
index.css 366B
file
tsconfig.json 535B
file
.gitignore 316B
folder
public 文件夹
file
logo192.png 8KB
file
manifest.json 492B
file
robots.txt 57B
file
index.html 2KB
file
logo512.png 22KB
file
favicon.ico 22KB
file
README.md 5KB
file
yarn.lock 528KB
file
.node-version 8B
zip 文件大小:424.21KB