MCPcopy Create free account
hub / github.com/BuilderIO/mitosis / buildCommand

Function buildCommand

packages/cli/src/commands/build.ts:21–41  ·  view source on GitHub ↗
({
  configRelPath,
  testConfig,
  options,
}: {
  configRelPath: string;
  options: any;
  testConfig?: boolean;
})

Source from the content-addressed store, hash-verified

19};
20
21export const buildCommand = async ({
22 configRelPath,
23 testConfig,
24 options,
25}: {
26 configRelPath: string;
27 options: any;
28 testConfig?: boolean;
29}): Promise<any> => {
30 const config = await getMitosisConfig(configRelPath);
31 if (!config) {
32 throw new Error(`No config file found for Mitosis.`);
33 } else if (testConfig) {
34 return config;
35 }
36 const targets = getTargets(config, options);
37 await build({
38 ...config,
39 targets,
40 });
41};
42
43const command: GluegunCommand = {
44 name: 'build',

Callers 1

build.tsFile · 0.85

Calls 2

getMitosisConfigFunction · 0.90
getTargetsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…