()
| 112 | } |
| 113 | |
| 114 | async 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 | |
| 153 | async function buildAndTestInlinePackage() { |
| 154 | const inlinePackagePath = join( |
no test coverage detected