UNPKG

@merkur/cli

Version:

Merkur is tiny and extensible library for creating front-end microservices.

19 lines (15 loc) 599 B
import { createCommandConfig } from '../commandConfig.mjs'; import { runDevServer } from '../devServer.mjs'; import { runWidgetServer } from '../widgetServer.mjs'; import { handleExit } from '../handleExit.mjs'; export async function start({ args, command }) { const { context, cliConfig, merkurConfig } = await createCommandConfig({ args, command, }); await handleExit({ context }); cliConfig.hasRunDevServer && (await runDevServer({ merkurConfig, cliConfig, context })); cliConfig.hasRunWidgetServer && (await runWidgetServer({ merkurConfig, cliConfig, context })); }