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

Function buildAndTestStandalonePackage

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

Source from the content-addressed store, hash-verified

112}
113
114async function buildAndTestStandalonePackage() {
115 const corePackagePath = join(ROOT_PATH, 'packages', 'react-devtools-core');
116 const corePackageDest = join(corePackagePath, 'dist');
117
118 await exec(`rm -rf ${corePackageDest}`);
119 const buildCorePromise = exec('yarn build', {cwd: corePackagePath});
120
121 await logger(
122 buildCorePromise,
123 `Building ${chalk.bold('react-devtools-core')} package.`,
124 {
125 estimate: 25000,
126 }
127 );
128
129 const standalonePackagePath = join(ROOT_PATH, 'packages', 'react-devtools');
130 const safariFixturePath = join(
131 ROOT_PATH,
132 'fixtures',
133 'devtools',
134 'standalone',
135 'index.html'
136 );
137
138 console.log('');
139 console.log(
140 `Test the ${chalk.bold('react-devtools-core')} target before continuing:`
141 );
142 console.log(` ${chalk.bold.green('cd ' + standalonePackagePath)}`);
143 console.log(` ${chalk.bold.green('yarn start')}`);
144 console.log('');
145 console.log(
146 'The following fixture can be useful for testing Safari integration:'
147 );
148 console.log(` ${chalk.dim(safariFixturePath)}`);
149
150 await confirmContinue();
151}
152
153async function buildAndTestInlinePackage() {
154 const inlinePackagePath = join(

Callers 1

mainFunction · 0.85

Calls 3

execFunction · 0.85
loggerFunction · 0.85
confirmContinueFunction · 0.85

Tested by

no test coverage detected