- Angular v10.2.5
- Electron v8.4.1
- Electron Builder v22.8.1
Command | Description |
---|---|
npm run ng:serve-angular:dev |
Execute the app in the browser |
npm run electron:local |
Builds your application and start electron |
npm run electron:build |
Builds your application and creates an app consumable based on your operating system |
Command | Description |
---|---|
npm run ng:build:dev |
|
npm run ng:build:web |
|
npm run ng:build:production |
|
npm run ng:build-angular:dev |
|
npm run ng:build-angular:web |
|
npm run ng:build-angular:production |
|
npm run ng:serve:dev |
|
npm run ng:serve:web |
|
npm run ng:serve:production |
|
npm run ng:serve-angular:dev |
|
npm run ng:serve-angular:web |
|
npm run ng:serve-angular:production |
You need to change de space of node with NODE_OPTIONS
--max_old_space_size=<size>
Your application is optimised. Only /dist folder and node dependencies are included in the executable.
YES! You can do it! Just by importing your library in npm dependencies section (not devDependencies)
with npm install --save
. It will be loaded by electron during build phase and added to your final package. Then use
your library by importing it in main.ts
file. Quite simple, isn't it ?
E2E Test scripts can be found in e2e
and cypress
folder.
Command | Description |
---|---|
npm run e2e |
Execute end to end tests of electron |
Command | Description |
---|---|
npm run ng:server |
Start the server |
npm run cypress:open |
Open cypress app and configure the commands |
npm run cypress:run |
Run tests of cypress (BUG) |
Note: To make it work behind a proxy, you can add this proxy exception in your terminal
export {no_proxy,NO_PROXY}="127.0.0.1,localhost"