electron-react-boilerplate

使用 React 和 TypeScript 开发 electron 应用,支持多特性

Stars
19

electron-react-boilerplate

English

React.js Electron App

  • React React
  • erb.config.js windows electron BrowserWindows
  • Touchbar electron/set-touchbar.ts
  • Tray electron/set-tray.ts
  • Dock electron/set-dock-menu
  • package.json build

  1. git clone:
git clone --depth=1 https://github.com/fantasticit/electron-react-boilerplate.git your-project-name
cd your-project-name
npm install

, renderer (,: hot-module-replacement) electron .

npm run dev

: 8080,,:

npm run dev other-port // such as npm run dev 9090

Jest :

npm test

jest.config.js .

:

npm run build

package.json ,:

"build": {
  "mac": {
    "icon": "icons/icon.icns"
  },
  "win": {
    "icon": "icons/icon.ico"
  },
  "linux": {
    "icon": "icons"
  }
}

index.html , App .

License

MIT

Badges
Extracted from project README
Build Status