()
| 76 | } |
| 77 | |
| 78 | async function buildAndTestExtensions() { |
| 79 | const extensionsPackagePath = join( |
| 80 | ROOT_PATH, |
| 81 | 'packages', |
| 82 | 'react-devtools-extensions' |
| 83 | ); |
| 84 | const buildExtensionsPromise = exec('yarn build', { |
| 85 | cwd: extensionsPackagePath, |
| 86 | }); |
| 87 | |
| 88 | await logger( |
| 89 | buildExtensionsPromise, |
| 90 | `Building browser extensions ${chalk.dim('(this may take a minute)')}`, |
| 91 | { |
| 92 | estimate: 60000, |
| 93 | } |
| 94 | ); |
| 95 | |
| 96 | console.log(''); |
| 97 | console.log(`Extensions have been build for Chrome, Edge, and Firefox.`); |
| 98 | console.log(''); |
| 99 | console.log('Smoke test each extension before continuing:'); |
| 100 | console.log(` ${chalk.bold.green('cd ' + extensionsPackagePath)}`); |
| 101 | console.log(''); |
| 102 | console.log(` ${chalk.dim('# Test Chrome extension')}`); |
| 103 | console.log(` ${chalk.bold.green('yarn test:chrome')}`); |
| 104 | console.log(''); |
| 105 | console.log(` ${chalk.dim('# Test Edge extension')}`); |
| 106 | console.log(` ${chalk.bold.green('yarn test:edge')}`); |
| 107 | console.log(''); |
| 108 | console.log(` ${chalk.dim('# Firefox Chrome extension')}`); |
| 109 | console.log(` ${chalk.bold.green('yarn test:firefox')}`); |
| 110 | |
| 111 | await confirmContinue(); |
| 112 | } |
| 113 | |
| 114 | async function buildAndTestStandalonePackage() { |
| 115 | const corePackagePath = join(ROOT_PATH, 'packages', 'react-devtools-core'); |
no test coverage detected