Skip to content

A quick start template with Electron+CRA+Webpack+Redux+Typescript+ElectronBuilder app

License

Notifications You must be signed in to change notification settings

Matthrews/electron-cra-boilerplate

Repository files navigation

electron-cra-boilerplate

A quick start template with Electron+CRA+Webpack+Redux+TypeScript+ElectronBuilder app

scripts

开发环境启动

yarn electron-dev

搭建过程

  1. 使用 CRA 创建 React+TypeScript 项目
npx create-react-app my-electron-app --template typescript
  1. 使用 Ant Design 搭建页面

  2. 使用 Redux 创建一个 TodoApp

  3. 使用 Highchats 和 Echarts 创建可视化样例页面

  4. 使用 react-markdown-editor-lite 创建编辑器样例页面

  5. 引入 electron 和 electron-builder

注意:webpack.config.jstarget要设置为electron-renderer

TODO

  1. 文件后缀统一
  2. Webpack 使用rescripts替代react-scripts

About

A quick start template with Electron+CRA+Webpack+Redux+Typescript+ElectronBuilder app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published