Skip to content

Commit 8c37cc4

Browse files
author
Maxime GRIS
committed
feat/ launch electron & webpack in // (npm run start)
1 parent 412a0a5 commit 8c37cc4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ npm install -g @angular/cli
5454
## To build for development
5555

5656
- **in a terminal window** -> npm start
57-
- **in another terminal window** -> npm run electron:serve
5857

5958
Voila! You can use your Angular + Electron app in a local development environment with hot reload !
6059

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-electron",
3-
"version": "1.8.1",
3+
"version": "1.9.0",
44
"description": "Angular 4 with Electron (Typescript + SASS + Hot Reload)",
55
"homepage": "https://github.com/maximegris/angular-electron",
66
"author": {
@@ -18,7 +18,8 @@
1818
"scripts": {
1919
"ng": "ng",
2020
"lint": "ng lint",
21-
"start": "webpack --watch",
21+
"start": "npm-run-all --parallel webpack:watch electron:serve",
22+
"webpack:watch": "webpack --watch",
2223
"start:web": "webpack-dev-server --content-base . --port 4200 --inline",
2324
"build:electron:main": "tsc main.ts --outDir dist && copyfiles package.json dist && cd dist && npm install --prod && cd ..",
2425
"build": "webpack --display-error-details && npm run build:electron:main",
@@ -80,6 +81,7 @@
8081
"less-loader": "4.0.5",
8182
"minimist": "1.2.0",
8283
"mkdirp": "0.5.1",
84+
"npm-run-all": "^4.1.1",
8385
"postcss-loader": "2.0.6",
8486
"postcss-url": "7.1.2",
8587
"protractor": "5.1.2",

0 commit comments

Comments
 (0)