Use random port for web app

This commit is contained in:
2025-06-14 20:30:00 +02:00
parent 5727707cce
commit f426368d15
3 changed files with 15 additions and 2 deletions

View File

@@ -3,7 +3,9 @@
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"start": "run-script-os",
"start:win32": "ng serve --port %PORT%",
"start:default": "ng serve --port $PORT",
"build": "ng build",
"watch": "ng build --watch --configuration development",
"test": "ng test"
@@ -31,6 +33,7 @@
"karma-coverage": "~2.2.1",
"karma-jasmine": "~5.1.0",
"karma-jasmine-html-reporter": "~2.1.0",
"run-script-os": "^1.1.6",
"typescript": "~5.8.3"
}
}

View File

@@ -66,6 +66,9 @@ importers:
karma-jasmine-html-reporter:
specifier: ~2.1.0
version: 2.1.0(jasmine-core@5.7.1)(karma-jasmine@5.1.0(karma@6.4.4))(karma@6.4.4)
run-script-os:
specifier: ^1.1.6
version: 1.1.6
typescript:
specifier: ~5.8.3
version: 5.8.3
@@ -2166,6 +2169,10 @@ packages:
engines: {node: '>=18.0.0', npm: '>=8.0.0'}
hasBin: true
run-script-os@1.1.6:
resolution: {integrity: sha512-ql6P2LzhBTTDfzKts+Qo4H94VUKpxKDFz6QxxwaUZN0mwvi7L3lpOI7BqPCq7lgDh3XLl0dpeXwfcVIitlrYrw==}
hasBin: true
rxjs@7.8.2:
resolution: {integrity: sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==}
@@ -4700,6 +4707,8 @@ snapshots:
'@rollup/rollup-win32-x64-msvc': 4.40.2
fsevents: 2.3.3
run-script-os@1.1.6: {}
rxjs@7.8.2:
dependencies:
tslib: 2.8.1