Skip to content

Latest commit

 

History

History
73 lines (53 loc) · 3.41 KB

README.md

File metadata and controls

73 lines (53 loc) · 3.41 KB

THUMDER

Netlify Status

Introduction | THUMDER

Datapath Schematic

License

Introduction | Angular - Electron

Angular Logo Electron Logo

Currently, runs with:

  • Angular v10.2.5
  • Electron v8.4.1
  • Electron Builder v22.8.1

Included Commands

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.

You want to use a specific lib (like rxjs) in electron main thread ?

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 Testing

E2E Test scripts can be found in e2e and cypress folder.

Electron e2e

Command Description
npm run e2e Execute end to end tests of electron

Server e2e

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"