main() — react Function Reference
Architecture documentation for the main() function in download_devtools_regression_build.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 33138783_7a91_c871_c21f_c71c2f28c07b["main()"] e111b43e_c038_4a6e_9038_384d8b141189["download_devtools_regression_build.js"] 33138783_7a91_c871_c21f_c71c2f28c07b -->|defined in| e111b43e_c038_4a6e_9038_384d8b141189 745bf39c_336e_302b_1f6a_ab9b1d96fef7["downloadRegressionBuild()"] 33138783_7a91_c871_c21f_c71c2f28c07b -->|calls| 745bf39c_336e_302b_1f6a_ab9b1d96fef7 style 33138783_7a91_c871_c21f_c71c2f28c07b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
scripts/ci/download_devtools_regression_build.js lines 135–150
async function main() {
try {
if (!version) {
console.log(chalk.red('Must specify React version to download'));
return;
}
await downloadRegressionBuild();
} finally {
// We shouldn't remove the regression-build folder unless we're using
// it to replace the build folder
if (shouldReplaceBuild) {
console.log(chalk.bold.white(`Removing regression build`));
await exec(`rm -r ${regressionBuildPath}`);
}
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does main() do?
main() is a function in the react codebase, defined in scripts/ci/download_devtools_regression_build.js.
Where is main() defined?
main() is defined in scripts/ci/download_devtools_regression_build.js at line 135.
What does main() call?
main() calls 1 function(s): downloadRegressionBuild.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free