buildAndTestStandalonePackage() — react Function Reference
Architecture documentation for the buildAndTestStandalonePackage() function in build-and-test.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 79f8e072_f2d2_4252_a044_b17f4cfad24b["buildAndTestStandalonePackage()"] 21cad21f_644b_d18d_0ebc_7082529ded32["build-and-test.js"] 79f8e072_f2d2_4252_a044_b17f4cfad24b -->|defined in| 21cad21f_644b_d18d_0ebc_7082529ded32 5fee8731_b60a_55eb_a4e0_95679d86d20d["main()"] 5fee8731_b60a_55eb_a4e0_95679d86d20d -->|calls| 79f8e072_f2d2_4252_a044_b17f4cfad24b style 79f8e072_f2d2_4252_a044_b17f4cfad24b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
scripts/devtools/build-and-test.js lines 114–151
async function buildAndTestStandalonePackage() {
const corePackagePath = join(ROOT_PATH, 'packages', 'react-devtools-core');
const corePackageDest = join(corePackagePath, 'dist');
await exec(`rm -rf ${corePackageDest}`);
const buildCorePromise = exec('yarn build', {cwd: corePackagePath});
await logger(
buildCorePromise,
`Building ${chalk.bold('react-devtools-core')} package.`,
{
estimate: 25000,
}
);
const standalonePackagePath = join(ROOT_PATH, 'packages', 'react-devtools');
const safariFixturePath = join(
ROOT_PATH,
'fixtures',
'devtools',
'standalone',
'index.html'
);
console.log('');
console.log(
`Test the ${chalk.bold('react-devtools-core')} target before continuing:`
);
console.log(` ${chalk.bold.green('cd ' + standalonePackagePath)}`);
console.log(` ${chalk.bold.green('yarn start')}`);
console.log('');
console.log(
'The following fixture can be useful for testing Safari integration:'
);
console.log(` ${chalk.dim(safariFixturePath)}`);
await confirmContinue();
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does buildAndTestStandalonePackage() do?
buildAndTestStandalonePackage() is a function in the react codebase, defined in scripts/devtools/build-and-test.js.
Where is buildAndTestStandalonePackage() defined?
buildAndTestStandalonePackage() is defined in scripts/devtools/build-and-test.js at line 114.
What calls buildAndTestStandalonePackage()?
buildAndTestStandalonePackage() 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