Add nodemon and new 'npm run watch' command to restart server when developing cards or api callbacks etcs (#176)
This commit is contained in:
Родитель
df28a1c4ae
Коммит
29493cbdd4
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
11
package.json
11
package.json
|
@ -7,6 +7,7 @@
|
|||
"scripts": {
|
||||
"build": "tsc",
|
||||
"lint": "tslint -t codeFrame 'src/**/*.ts' 'test/**/*.ts'",
|
||||
"nodemon": "nodemon",
|
||||
"prestart": "npm run build",
|
||||
"start": "node ./lib/app.js",
|
||||
"startnobuild": "node ./lib/app.js",
|
||||
|
@ -14,6 +15,7 @@
|
|||
"tsc": "tsc",
|
||||
"ui": "node ./lib/ui.js",
|
||||
"verifypackagelock": "tsc -p ./scripts/tsconfig.json && node ./scripts/verifypackagelock.js",
|
||||
"watch": "concurrently --kill-others -p [{name}-{pid}] -n tsc,bot \"tsc -w\" \"nodemon\"",
|
||||
"demo-password": "node ./lib/demos/demoPasswordReset.js",
|
||||
"demo-pizza": "node ./lib/demos/demoPizzaOrder.js",
|
||||
"demo-storage": "node ./lib/demos/demoStorage.js",
|
||||
|
@ -37,12 +39,21 @@
|
|||
"@types/execa": "^0.8.1",
|
||||
"@types/express": "^4.11.0",
|
||||
"@types/restify": "^5.0.7",
|
||||
"concurrently": "^3.5.1",
|
||||
"execa": "^0.9.0",
|
||||
"nodemon": "^1.17.3",
|
||||
"tslint": "^5.8.0",
|
||||
"tslint-microsoft-contrib": "^5.0.3",
|
||||
"typescript": "^2.6.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": "8.8.0"
|
||||
},
|
||||
"nodemonConfig": {
|
||||
"watch": [
|
||||
"lib",
|
||||
"cards"
|
||||
],
|
||||
"delay": "500"
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче