Skip to content

nonodev96/THUMDER

Folders and files

NameName
Last commit message
Last commit date
Jan 25, 2022
Jan 24, 2022
Oct 3, 2021
Jan 14, 2022
Dec 27, 2021
Jan 25, 2022
Dec 28, 2021
Oct 28, 2021
Oct 10, 2021
Jan 14, 2022
Jun 7, 2021
Jun 7, 2021
Nov 4, 2021
Jan 14, 2022
Dec 6, 2021
Jan 6, 2022
Nov 4, 2021
Jan 6, 2022
Jun 7, 2021
Jan 14, 2022
Dec 28, 2021
Sep 24, 2021
Jan 25, 2022
Jul 23, 2021
Jan 25, 2022
Jul 15, 2021
Jan 25, 2022
Jan 24, 2022
Oct 21, 2021

Repository files navigation

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"