Electron 在企业应用开发中的实践
导图


快速试错
特定领域(开发者工具 效率引用)
同时开发 web 版+桌面端
































常用模块:
app 应用生命周期 app 本身属性
BrowserWindow 窗口管理
ipcMain 跟 ipcRenderer 进行 ipc 通信
Menu 原生 gui
Tray 原生 gui
MenuItem 原生 gui
dialog
Notification 做交互通知
webContents 加载具体页面
autoUpdater 更新模块
globalShortcut 全局快捷键
clipboard 读写剪贴板
crashReporter 监控主进程渲染进程是否有奔溃
ipcRenderer
remote 调用主进程的模块
desktopCapture 扑获桌面流
进程间通信















原生能力 native-api






node-ffi 集成动态库(c++)









远程控制






rbotjs 使用 c++扩展库



项目开始:

control.index.html

main.index.js


react 启动不会出现浏览器跳转:





































禁止多开


常见 gui





前端工程化
工具链
持续集成
持续交互
源码管理
协同管理
搭建系统
组件标准化
自动化测试

打包工具:




























