This project was generated using Nx.
This is a showcase of Electron embedding an Angular App.
The npm scripts available helps with the whole workflow:
-
yarn start
serves an Electron instance with the Angular dev-server. -
yarn serve
is available to serve the Angular application only.
-
yarn desktop:dist
bundles the whole app viaelectron-builder
.
You can pass parameters like--win
--mac
--linux
to target a different OS.
Electron-builder settings can be defined atapps/desktop/electron/src/assets/package.json
too.
See https://www.electron.build/configuration/configuration -
yarn desktop:build:analyze
shows a report of the application size.
Enjoy!