Home / Function/ buildAndTestInlinePackage() — react Function Reference

buildAndTestInlinePackage() — react Function Reference

Architecture documentation for the buildAndTestInlinePackage() function in build-and-test.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  690c4a3f_d501_fbe6_d197_049a13135ae7["buildAndTestInlinePackage()"]
  21cad21f_644b_d18d_0ebc_7082529ded32["build-and-test.js"]
  690c4a3f_d501_fbe6_d197_049a13135ae7 -->|defined in| 21cad21f_644b_d18d_0ebc_7082529ded32
  5fee8731_b60a_55eb_a4e0_95679d86d20d["main()"]
  5fee8731_b60a_55eb_a4e0_95679d86d20d -->|calls| 690c4a3f_d501_fbe6_d197_049a13135ae7
  style 690c4a3f_d501_fbe6_d197_049a13135ae7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

scripts/devtools/build-and-test.js lines 153–182

async function buildAndTestInlinePackage() {
  const inlinePackagePath = join(
    ROOT_PATH,
    'packages',
    'react-devtools-inline'
  );
  const inlinePackageDest = join(inlinePackagePath, 'dist');

  await exec(`rm -rf ${inlinePackageDest}`);
  const buildPromise = exec('yarn build', {cwd: inlinePackagePath});

  await logger(
    buildPromise,
    `Building ${chalk.bold('react-devtools-inline')} package.`,
    {
      estimate: 10000,
    }
  );

  const shellPackagePath = join(ROOT_PATH, 'packages', 'react-devtools-shell');

  console.log('');
  console.log(`Built ${chalk.bold('react-devtools-inline')} target.`);
  console.log('');
  console.log('Test this build before continuing:');
  console.log(`  ${chalk.bold.green('cd ' + shellPackagePath)}`);
  console.log(`  ${chalk.bold.green('yarn start')}`);

  await confirmContinue();
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does buildAndTestInlinePackage() do?
buildAndTestInlinePackage() is a function in the react codebase, defined in scripts/devtools/build-and-test.js.
Where is buildAndTestInlinePackage() defined?
buildAndTestInlinePackage() is defined in scripts/devtools/build-and-test.js at line 153.
What calls buildAndTestInlinePackage()?
buildAndTestInlinePackage() is called by 1 function(s): main.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free