update README (electron builder two package structure)

This commit is contained in:
Maxime GRIS
2021-06-13 13:05:56 +02:00
committed by GitHub
parent 33f5f6dd85
commit 2e292321c5

View File

@@ -34,13 +34,13 @@ With this sample, you can:
## Getting Started ## Getting Started
Clone this repository locally: *Clone this repository locally:*
``` bash ``` bash
git clone https://github.com/maximegris/angular-electron.git 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 ``` bash
npm install npm install
@@ -55,13 +55,15 @@ Please follow [Angular-cli documentation](https://github.com/angular/angular-cli
npm install -g @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 ``` bash
cp app/ cp app/
npm install 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 ## To build for development
- **in a terminal window** -> npm start - **in a terminal window** -> npm start