| 6 | const build = require('../build'); |
| 7 | |
| 8 | const main = async () => { |
| 9 | await build('firefox'); |
| 10 | |
| 11 | console.log(chalk.green('\nThe Firefox extension has been built!')); |
| 12 | console.log(chalk.green('You can test this build by running:')); |
| 13 | console.log(chalk.gray('\n# From the react-devtools root directory:')); |
| 14 | console.log('yarn run test:firefox'); |
| 15 | console.log( |
| 16 | chalk.gray('\n# You can also test against upcoming Firefox releases.') |
| 17 | ); |
| 18 | console.log( |
| 19 | chalk.gray( |
| 20 | '# First download a release from https://www.mozilla.org/en-US/firefox/channel/desktop/' |
| 21 | ) |
| 22 | ); |
| 23 | console.log( |
| 24 | chalk.gray( |
| 25 | '# And then tell web-ext which release to use (eg firefoxdeveloperedition, nightly, beta):' |
| 26 | ) |
| 27 | ); |
| 28 | console.log('WEB_EXT_FIREFOX=nightly yarn run test:firefox'); |
| 29 | console.log(chalk.gray('\n# You can test against older versions too:')); |
| 30 | console.log( |
| 31 | 'WEB_EXT_FIREFOX=/Applications/Firefox Developer Edition.app/Contents/MacOS/firefox-bin yarn run test:firefox' |
| 32 | ); |
| 33 | }; |
| 34 | |
| 35 | main(); |
| 36 | |