MCPcopy Create free account
hub / github.com/Cphayim/ombro / boot

Method boot

packages/node/src/engine.ts:18–29  ·  view source on GitHub ↗
({ entry }: BootstrapOptions)

Source from the content-addressed store, hash-verified

16
17export class Engine {
18 boot({ entry }: BootstrapOptions): void {
19 this.checkEntryExists(entry)
20
21 const babelBinary = this.findBabelBinary()
22 const babelConfig = this.findBabelConfig()
23
24 log(`waiting for compile exec: ${entry}`)
25 execa.commandSync(`${babelBinary} --config-file ${babelConfig} ${entry}`, {
26 stdio: 'inherit',
27 cwd: process.cwd(),
28 })
29 }
30
31 findBabelBinary(): string | undefined {
32 return findUp.sync(

Callers 2

index.tsFile · 0.80
engine.test.tsFile · 0.80

Calls 4

checkEntryExistsMethod · 0.95
findBabelBinaryMethod · 0.95
findBabelConfigMethod · 0.95
logFunction · 0.90

Tested by

no test coverage detected