From 8c37cc4c7fad3cdd25a76dd514df55e5dc6c39d8 Mon Sep 17 00:00:00 2001 From: Maxime GRIS Date: Fri, 22 Sep 2017 17:08:11 +0200 Subject: [PATCH] feat/ launch electron & webpack in // (npm run start) --- README.md | 1 - package.json | 6 ++++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 76f83caef..3877d48cd 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,6 @@ npm install -g @angular/cli ## To build for development - **in a terminal window** -> npm start -- **in another terminal window** -> npm run electron:serve Voila! You can use your Angular + Electron app in a local development environment with hot reload ! diff --git a/package.json b/package.json index 9b8c1196c..885ed1005 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "angular-electron", - "version": "1.8.1", + "version": "1.9.0", "description": "Angular 4 with Electron (Typescript + SASS + Hot Reload)", "homepage": "https://github.com/maximegris/angular-electron", "author": { @@ -18,7 +18,8 @@ "scripts": { "ng": "ng", "lint": "ng lint", - "start": "webpack --watch", + "start": "npm-run-all --parallel webpack:watch electron:serve", + "webpack:watch": "webpack --watch", "start:web": "webpack-dev-server --content-base . --port 4200 --inline", "build:electron:main": "tsc main.ts --outDir dist && copyfiles package.json dist && cd dist && npm install --prod && cd ..", "build": "webpack --display-error-details && npm run build:electron:main", @@ -80,6 +81,7 @@ "less-loader": "4.0.5", "minimist": "1.2.0", "mkdirp": "0.5.1", + "npm-run-all": "^4.1.1", "postcss-loader": "2.0.6", "postcss-url": "7.1.2", "protractor": "5.1.2",