Automatyczne killowanie portu przy nodemonowym restarcie

This commit is contained in:
Kuba Orlik 2021-03-13 11:51:25 +01:00
parent 353fb8c579
commit d67c9ee37d
3 changed files with 13615 additions and 6193 deletions

7
nodemon.json Normal file
View File

@ -0,0 +1,7 @@
{
"events": {
"restart": "kill-port 8080",
"crash": "kill-port 8080"
},
"delay": "500"
}

7546
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -23,7 +23,7 @@
"@hotwired/turbo": "^7.0.0-beta.3", "@hotwired/turbo": "^7.0.0-beta.3",
"@koa/router": "^10.0.0", "@koa/router": "^10.0.0",
"nodemon": "^2.0.7", "nodemon": "^2.0.7",
"sealious": "^0.13.13", "sealious": "^0.13.22",
"stimulus": "^2.0.0" "stimulus": "^2.0.0"
}, },
"devDependencies": { "devDependencies": {
@ -32,6 +32,7 @@
"eslint": "^7.19.0", "eslint": "^7.19.0",
"eslint-config-prettier": "^7.2.0", "eslint-config-prettier": "^7.2.0",
"eslint-plugin-prettier": "^3.3.1", "eslint-plugin-prettier": "^3.3.1",
"kill-port": "^1.6.1",
"prettier": "^2.2.1", "prettier": "^2.2.1",
"ts-loader": "^8.0.14", "ts-loader": "^8.0.14",
"typescript": "^4.1.3", "typescript": "^4.1.3",