A basic angular5 application (with Angular Material) combined with Electron to build desktop app with Angular.
All default Angular CLI scripts remain. Addtional scripts are:
npm run test:ci
: only runs tests once.npm run build-electron
: builds the angular app with--base-href .
npm run electron
: builds the angular app and then runselectron .
to start the appnpm run package
: runs tests, builds app, packages the app for default target (the host platform)npm run package:win32
: runs tests, builds app, packages the app for windows. (note: must have wine 1.6+ installed for windows packages on linux host machines.)npm run package:mac
: runs tests, builds app, packages the app for mac. (note: homebrew is necessary for packaging windows on a mac)