Skip to content

Commit

Permalink
Auto restart when is edited public/*.js code in dev mode. (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
HyunmoAhn authored and kamranahmedse committed Nov 4, 2018
1 parent face49b commit 878e707
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 1,527 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"scripts": {
"_react": "cross-env BROWSER=none react-scripts start",
"_electron": "cross-env APP_URL=http://localhost:3000 electron .",
"_electron": "nodemon --exec \"cross-env APP_URL=http://localhost:3000 electron .\" --ext js --watch public/",
"_build": "react-scripts build",
"start": "concurrently \"yarn _react\" \"wait-on http://localhost:3000 && yarn _electron\" ",
"build": "yarn _build && build --mac --win --linux --x64 --ia32 -p always",
Expand Down Expand Up @@ -99,6 +99,7 @@
"jquery": "^3.3.1",
"mocha": "^5.2.0",
"node-sass": "^4.9.4",
"nodemon": "^1.18.5",
"popper.js": "^1.14.4",
"spectron": "^5.0.0",
"wait-on": "^3.1.0"
Expand Down
Loading

0 comments on commit 878e707

Please sign in to comment.