mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-11 07:12:29 +02:00
refactor(v2): cleanup console output (#4979)
* refactor(v2): cleanup console output * fix jest issue Co-authored-by: slorber <lorber.sebastien@gmail.com>
This commit is contained in:
parent
8501db78a1
commit
41d9288e3d
86 changed files with 382 additions and 339 deletions
|
@ -18,9 +18,9 @@ const requiredVersion = require('../package.json').engines.node;
|
|||
|
||||
if (!semver.satisfies(process.version, requiredVersion)) {
|
||||
console.log(
|
||||
chalk.red(`\nMinimum node version not met :)`) +
|
||||
chalk.red(`\nMinimum Node.js version not met :)`) +
|
||||
chalk.yellow(
|
||||
`\nYou are using Node ${process.version}, Requirement: Node ${requiredVersion}.\n`,
|
||||
`\nYou are using Node.js ${process.version}, Requirement: Node.js ${requiredVersion}.\n`,
|
||||
),
|
||||
);
|
||||
process.exit(1);
|
||||
|
@ -42,7 +42,7 @@ program
|
|||
.command('init [siteName] [template] [rootDir]')
|
||||
.option('--use-npm')
|
||||
.option('--skip-install')
|
||||
.description('Initialize website')
|
||||
.description('Initialize website.')
|
||||
.action((siteName, template, rootDir = '.', {useNpm, skipInstall}) => {
|
||||
wrapCommand(init)(path.resolve(rootDir), siteName, template, {
|
||||
useNpm,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue