Skip to content

Commit

Permalink
feat/ launch electron & webpack in // (npm run start)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime GRIS committed Sep 22, 2017
1 parent 412a0a5 commit 8c37cc4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 !

Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 8c37cc4

Please sign in to comment.