Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/matheo/nx-electron

Electron boilerplate setup within a Nx Monorepo
https://github.com/matheo/nx-electron

Last synced: 20 days ago
JSON representation

Electron boilerplate setup within a Nx Monorepo

Awesome Lists containing this project

README

        

# @matheo/nx-electron

This project was generated using [Nx](https://nx.dev).

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!