MCPcopy Index your code
hub / github.com/react/react / buildAndTestInlinePackage

Function buildAndTestInlinePackage

scripts/devtools/build-and-test.js:153–182  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

151}
152
153async function buildAndTestInlinePackage() {
154 const inlinePackagePath = join(
155 ROOT_PATH,
156 'packages',
157 'react-devtools-inline'
158 );
159 const inlinePackageDest = join(inlinePackagePath, 'dist');
160
161 await exec(`rm -rf ${inlinePackageDest}`);
162 const buildPromise = exec('yarn build', {cwd: inlinePackagePath});
163
164 await logger(
165 buildPromise,
166 `Building ${chalk.bold('react-devtools-inline')} package.`,
167 {
168 estimate: 10000,
169 }
170 );
171
172 const shellPackagePath = join(ROOT_PATH, 'packages', 'react-devtools-shell');
173
174 console.log('');
175 console.log(`Built ${chalk.bold('react-devtools-inline')} target.`);
176 console.log('');
177 console.log('Test this build before continuing:');
178 console.log(` ${chalk.bold.green('cd ' + shellPackagePath)}`);
179 console.log(` ${chalk.bold.green('yarn start')}`);
180
181 await confirmContinue();
182}
183
184async function downloadLatestReactBuild() {
185 const releaseScriptPath = join(ROOT_PATH, 'scripts', 'release');

Callers 1

mainFunction · 0.85

Calls 3

execFunction · 0.85
loggerFunction · 0.85
confirmContinueFunction · 0.85

Tested by

no test coverage detected