react/packages/react-devtools-extensions/firefox/build.js

38 lines
1.1 KiB
JavaScript
Raw Normal View History

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');
const build = require('../build');
2019-01-24 10:06:21 +08:00
const main = async () => {
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(
'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-08-14 08:58:03 +08:00
module.exports = {main};