Commits
Yura Bondarenko authored a77b1da804d
1 1 | import * as child from 'child_process'; |
2 2 | |
3 3 | import { AppConfig } from '../src/config/app-config.interface'; |
4 4 | import { buildAppConfig } from '../src/config/config.server'; |
5 5 | |
6 6 | const appConfig: AppConfig = buildAppConfig(); |
7 7 | |
8 8 | /** |
9 9 | * Calls `ng serve` with the following arguments configured for the UI in the app config: host, port, nameSpace, ssl |
10 + | * Any CLI arguments given to this script are patched through to `ng serve` as well. |
10 11 | */ |
11 12 | child.spawn( |
12 - | `ng serve --host ${appConfig.ui.host} --port ${appConfig.ui.port} --serve-path ${appConfig.ui.nameSpace} --ssl ${appConfig.ui.ssl}`, |
13 + | `ng serve --host ${appConfig.ui.host} --port ${appConfig.ui.port} --serve-path ${appConfig.ui.nameSpace} --ssl ${appConfig.ui.ssl} ${process.argv.slice(2).join(' ')}`, |
13 14 | { stdio: 'inherit', shell: true } |
14 15 | ); |