Build an electron project scaffolded in
@angular/cli
This is an extention/plugin which allows @angular/cli users to create electron apps. It was made to address this:
$ npm install ng-cli-electron electron awesome-typescript-loader --saveThe commands are similar to @angular/cli's own ones.
Add the following in your scripts section inside package.json:
"build-electron": "nge build"
If you only want to build the main part of Electron:
"build-electron-main": "nge build --main"
You can use a subset of the build flags here
More specifically:
aotappdeploy-urlenvironmentextract-cssforcei18n-filei18n-formatlocalemissing-translationoutput-hashingprogresssourcemaptargetvendor-chunkcommon-chunkverbose
Add the following in your scripts section inside package.json:
"serve-electron": "nge serve"
nge --help
Made with 💖 by Dolan