Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
console.log();
console.log(
` If you have any problems, do not hesitate to file an issue:`
);
console.log(
` ${chalk.cyan(
'https://github.com/offgridnetworks/fuse-box-create-react-app/issues/new'
)}`
);
console.log();
})
.parse(process.argv);
if (typeof projectName === 'undefined') {
if (program.info) {
envinfo.print({
packages: ['react', 'react-dom', 'fuse-box-react-scripts'],
noNativeIDE: true,
duplicates: true,
});
process.exit(0);
}
console.error('Please specify the project directory:');
console.log(
` ${chalk.cyan(program.name())} ${chalk.green('')}`
);
console.log();
console.log('For example:');
console.log(` ${chalk.cyan(program.name())} ${chalk.green('my-react-app')}`);
console.log();
console.log(
`Run ${chalk.cyan(`${program.name()} --help`)} to see all options.`
console.log();
console.log(
` If you have any problems, do not hesitate to file an issue:`
);
console.log(
` ${chalk.cyan(
'https://github.com/humanmade/react-wp-scripts/issues/new'
)}`
);
console.log();
} )
.parse( process.argv );
if ( typeof projectName === 'undefined' ) {
if (program.info) {
envinfo.print( {
packages: ['react', 'react-dom', 'react-wp-scripts'],
noNativeIDE: true,
duplicates: true,
} );
process.exit( 0 );
}
console.error( 'Please specify the project directory:' );
console.log(
` ${chalk.cyan(program.name())} ${chalk.green('')}`
);
console.log();
console.log( 'For example:' );
console.log( ` ${chalk.cyan(program.name())} ${chalk.green('my-react-app')}` );
console.log();
console.log(
`Run ${chalk.cyan(`${program.name()} --help`)} to see all options.`