2019-01-24 10:06:21 +08:00
|
|
|
#!/usr/bin/env node
|
|
|
|
|
|
2019-08-14 12:59:07 +08:00
|
|
|
'use strict';
|
|
|
|
|
|
2019-01-24 10:06:21 +08:00
|
|
|
const chalk = require('chalk');
|
2019-08-14 13:15:38 +08:00
|
|
|
const build = require('../build');
|
2019-01-24 10:06:21 +08:00
|
|
|
|
|
|
|
|
const main = async () => {
|
2019-02-23 06:36:10 +08:00
|
|
|
await build('firefox');
|
2019-01-24 10:06:21 +08:00
|
|
|
|
|
|
|
|
console.log(chalk.green('\nThe Firefox extension has been built!'));
|
|
|
|
|
console.log(chalk.green('You can test this build by running:'));
|
|
|
|
|
console.log(chalk.gray('\n# From the react-devtools root directory:'));
|
|
|
|
|
console.log('yarn run test:firefox');
|
|
|
|
|
console.log(
|
|
|
|
|
chalk.gray('\n# You can also test against upcoming Firefox releases.')
|
|
|
|
|
);
|
|
|
|
|
console.log(
|
|
|
|
|
chalk.gray(
|
|
|
|
|
'# First download a release from https://www.mozilla.org/en-US/firefox/channel/desktop/'
|
|
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
console.log(
|
|
|
|
|
chalk.gray(
|
|
|
|
|
'# And then tell web-ext which release to use (eg firefoxdeveloperedition, nightly, beta):'
|
|
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
console.log('WEB_EXT_FIREFOX=nightly yarn run test:firefox');
|
|
|
|
|
console.log(chalk.gray('\n# You can test against older versions too:'));
|
|
|
|
|
console.log(
|
2020-01-15 06:00:28 +08:00
|
|
|
'WEB_EXT_FIREFOX=/Applications/Firefox Developer Edition.app/Contents/MacOS/firefox-bin yarn run test:firefox'
|
2019-01-24 10:06:21 +08:00
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
main();
|
2019-02-23 06:36:10 +08:00
|
|
|
|
2019-08-14 08:58:03 +08:00
|
|
|
module.exports = {main};
|