electron-cra-ts-lerna-webpack
Develop the electron
application immediately without waiting
中文文档
- Electron
- create-react-app
- TypeScript
- Webpack
- electron-webpack
- electron-builder
- react-hot-loader
- lerna
- yarn
- render hot update(Refresh only changed components)
main-process
hot update(Auto restart)
main-process
and renderer-process
all use TypeScript
- support mac pack (
dmg
and zip
)
- support windows pack (
nsis
and zip
)
- support linux pack (
AppImage
and deb
)
- use
lerna
and yarn workspace
reduce project size
- use
yarn autoclean
to reduce the size of the final package
git clone git@github.com:BlackHole1/electron-cra-ts-lerna-webpack.git --depth=1 newProject
cd newProject
yarn
# renderer-app (The first shell window, Don't close)
cd packages/renderer-app
yarn start
# main-app (Second shell window, Don't close)
cd packages/main-app
yarn start
cd packages/renderer-app
yarn build
cd ../packages/main-app
# or yarn copyRenderBuildCode && yarn build:main && yarn pack:mac
yarn pack:mac:auto