Files
react/shells/browser/chrome/build.js
2019-01-23 18:06:21 -08:00

21 lines
521 B
JavaScript

#!/usr/bin/env node
const chalk = require('chalk');
const { join } = require('path');
const build = require('../shared/build');
const main = async () => {
await build(
'chrome',
join(__dirname, 'manifest.json'),
join(__dirname, 'build')
);
console.log(chalk.green('\nThe Chrome 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:chrome');
};
main();