feat: add and configure nodemon

This commit is contained in:
Kris Koishigawa 2020-09-14 18:09:53 +09:00
parent 8a439ad027
commit 19641b95fa
3 changed files with 992 additions and 2 deletions

13
nodemon.json Normal file
View File

@ -0,0 +1,13 @@
{
"restartable": "rs",
"ignore": [
".git",
"node_modules/**/node_modules"
],
"verbose": true,
"env": {
"NODE_ENV": "development"
},
"ext": "js,json,html,css",
"delay": "2500"
}

974
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -4,7 +4,7 @@
"description": "API project for freeCodeCamp",
"main": "server.js",
"scripts": {
"start": "node server.js"
"start": "nodemon server.js"
},
"dependencies": {
"body-parser": "^1.19.0",
@ -17,5 +17,8 @@
"engines": {
"node": "12.18.3"
},
"license": "MIT"
"license": "MIT",
"devDependencies": {
"nodemon": "^2.0.4"
}
}