matheo / nx-electron

Electron boilerplate setup within a Nx Monorepo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@matheo/nx-electron

This project was generated using Nx.

This is a showcase of Electron embedding an Angular App.
The npm scripts available helps with the whole workflow:

Developing

  • yarn start serves an Electron instance with the Angular dev-server.

  • yarn serve is available to serve the Angular application only.

Building

  • yarn desktop:dist bundles the whole app via electron-builder.
    You can pass parameters like --win --mac --linux to target a different OS.
    Electron-builder settings can be defined at apps/desktop/electron/src/assets/package.json too.
    See https://www.electron.build/configuration/configuration

  • yarn desktop:build:analyze shows a report of the application size.

Enjoy!

About

Electron boilerplate setup within a Nx Monorepo


Languages

Language:TypeScript 58.0%Language:JavaScript 22.1%Language:SCSS 11.9%Language:HTML 8.0%