MCPcopy
hub / github.com/vitejs/vite / start

Function start

packages/create-vite/src/index.ts:428–438  ·  view source on GitHub ↗
(root: string, agent: string)

Source from the content-addressed store, hash-verified

426}
427
428function start(root: string, agent: string) {
429 if (process.env._VITE_TEST_CLI) {
430 prompts.log.step('Starting dev server... (skipped in test)')
431 return
432 }
433 prompts.log.step('Starting dev server...')
434 run(getRunCommand(agent, 'dev'), {
435 stdio: 'inherit',
436 cwd: root,
437 })
438}
439
440async function init() {
441 const argTargetDir = argv._[0]

Callers 1

initFunction · 0.70

Calls 2

getRunCommandFunction · 0.85
runFunction · 0.70

Tested by

no test coverage detected