Skip to content

Commit

Permalink
update README (electron builder two package structure)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximegris authored Jun 13, 2021
1 parent 33f5f6d commit 2e29232
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ With this sample, you can:

## Getting Started

Clone this repository locally:
*Clone this repository locally:*

``` bash
git clone https://github.com/maximegris/angular-electron.git
```

Install dependencies with npm (used by Electron renderer process):
*Install dependencies with npm (used by Electron renderer process):*

``` bash
npm install
Expand All @@ -55,13 +55,15 @@ Please follow [Angular-cli documentation](https://github.com/angular/angular-cli
npm install -g @angular/cli
```

Install NodeJS dependencies with npm (used by Electron main process):
*Install NodeJS dependencies with npm (used by Electron main process):*

``` bash
cp app/
npm install
```

Why two package.json ? This project follow [Electron Builder two package.json structure](https://www.electron.build/tutorials/two-package-structure) in order to optimize final bundle and be still able to use Angular `ng add` feature.

## To build for development

- **in a terminal window** -> npm start
Expand Down

0 comments on commit 2e29232

Please sign in to comment.