Skip to content

Commit

Permalink
🔧Use babel-watch to replace nodemon
Browse files Browse the repository at this point in the history
Because of this issue remy/nodemon#1025
➕babel-wathc
➖nodemon
⚠️It may crash when saving files quickly
(detail:
TypeError: First argument must be file descriptor
https://github.com/kmagiera/babel-watch/blob/0bb38ce492b32ae196574a8b36daa79c5a7f61e5/babel-watch.js#L291)
  • Loading branch information
MadratJerry committed Nov 22, 2017
1 parent ba2f6f4 commit 825db5c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 375 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"scripts": {
"start": "npm run build && npm run server",
"stop": "npx pm2 stop dist",
"dev": "npx nodemon --exec npx babel-node index.js",
"dev": "npx babel-watch .",
"build": "npx webpack",
"server": "npx pm2 start dist"
},
Expand All @@ -28,6 +28,6 @@
"webpack": "^3.8.1"
},
"devDependencies": {
"nodemon": "^1.12.1"
"babel-watch": "^2.0.7"
}
}
Loading

0 comments on commit 825db5c

Please sign in to comment.