Add electron
This commit is contained in:
34
README.md
34
README.md
@@ -36,6 +36,40 @@ ng build
|
||||
|
||||
This will compile your project and store the build artifacts in the `dist/` directory. By default, the production build optimizes your application for performance and speed.
|
||||
|
||||
## Electron desktop app
|
||||
|
||||
This project can also run as an Electron desktop app using the same Angular frontend.
|
||||
|
||||
### Run Electron with a production build
|
||||
|
||||
```bash
|
||||
npm run electron
|
||||
```
|
||||
|
||||
This command runs `npm run build:electron` internally to emit a file-based build for Electron.
|
||||
|
||||
### Run Electron against the Angular dev server
|
||||
|
||||
Start Angular in one terminal:
|
||||
|
||||
```bash
|
||||
npm start
|
||||
```
|
||||
|
||||
Then start Electron in another terminal:
|
||||
|
||||
```bash
|
||||
npm run electron:dev
|
||||
```
|
||||
|
||||
### Package a Linux desktop build
|
||||
|
||||
```bash
|
||||
npm run electron:pack
|
||||
```
|
||||
|
||||
The packaged app is created in the `release/` directory.
|
||||
|
||||
## Running unit tests
|
||||
|
||||
To execute unit tests with the [Vitest](https://vitest.dev/) test runner, use the following command:
|
||||
|
||||
Reference in New Issue
Block a user