mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
16 lines
669 B
TypeScript
16 lines
669 B
TypeScript
import { spawn } from 'child_process';
|
|
|
|
import { AppConfig } from '../src/config/app-config.interface';
|
|
import { buildAppConfig } from '../src/config/config.server';
|
|
|
|
const appConfig: AppConfig = buildAppConfig();
|
|
|
|
/**
|
|
* Calls `ng serve` with the following arguments configured for the UI in the app config: host, port, nameSpace, ssl
|
|
* Any CLI arguments given to this script are patched through to `ng serve` as well.
|
|
*/
|
|
spawn(
|
|
`ng serve --host ${appConfig.ui.host} --port ${appConfig.ui.port} --serve-path ${appConfig.ui.nameSpace} --ssl ${appConfig.ui.ssl} ${process.argv.slice(2).join(' ')} --configuration development`,
|
|
{ stdio: 'inherit', shell: true }
|
|
);
|