Makes the dev target support auto reloading of the server

This commit is contained in:
Scott Ruoti 2022-10-29 23:36:52 -04:00
parent c6e9fe6513
commit e97171d953
2 changed files with 645 additions and 2 deletions

View file

@ -4,7 +4,7 @@
"description": "Self-hosted audiobook and podcast server",
"main": "index.js",
"scripts": {
"dev": "node index.js",
"dev": "nodemon --watch server index.js",
"start": "node index.js",
"client": "cd client && npm ci && npm run generate",
"prod": "npm run client && npm ci && node prod.js",
@ -37,5 +37,8 @@
"node-tone": "^1.0.1",
"socket.io": "^4.4.1",
"xml2js": "^0.4.23"
},
"devDependencies": {
"nodemon": "^2.0.20"
}
}