ngx-rocket / generator-ngx-rocket

:rocket: Extensible Angular 14+ enterprise-grade project generator
https://ngx-rocket.github.io/
MIT License
1.53k stars 217 forks source link

Add ngx-scripts support for Electron #460

Open sinedied opened 5 years ago

sinedied commented 5 years ago

Related: https://github.com/ngx-rocket/generator-ngx-rocket/issues/418

Current Electron build is far from perfect:

Some of these issues are related to the usage of electron-packager and could be resolved by changing to electron-builder with appropriate configuration as in #418 (the bloating), but the others would be simpler to tacker with a specific support for Electron in ngx-scripts, like how it's done for Cordova support.

Basically, it would be nice to mimic the Cordova workflow with something like 3 base scripts: electron:run, electron:build and electron:clean with additional params to enable live-reload (--serve), skip rebuild (--fast) or target a specific platform (windows|mac|linux) for the build. The plumbing would then be done under the hood 😉