TypeScript/Electron/Angularto build a cross-platform app
appmeans the Angular project used for the renderer process of Electronmainmeans the TypeScript project for the main process of Electron
- Using
@angular/clito build web assets for the renderer process - Using
esbuildto build a bundledapp.min.jsfor the main process - Using
electron-builderto build installers/executables
npm installto get the depsnpm run start:appto serve the angular app at http://localhost:4200npm run start:main -- --serveto start up electron to debug with the served angular appnpm run build:outto get the output byelectron-builder
$ npm run build:app
$ npm run build:main
$ npm run build:prod