-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: update envinfo + implementation, update issue_template #4375
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -121,15 +121,28 @@ const program = new commander.Command(packageJson.name) | |
}) | ||
.parse(process.argv); | ||
|
||
if (program.info) { | ||
console.log(chalk.bold('\nEnvironment Info:')); | ||
return envinfo | ||
.run( | ||
{ | ||
System: ['OS', 'CPU'], | ||
Binaries: ['Node', 'npm', 'Yarn'], | ||
Browsers: ['Chrome', 'Firefox', 'Safari'], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we add Edge and IE here to support Windows users? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am 100,000% not a windows user - I did my best, and as of envinfo@5.4.0, they should both be there. If someone could test this out This shows up for me on a vagrant box.
Will update this PR too. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It works on Windows 10. And outputs
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. awesome thanks for testing - Ill update the PR to the latest version now. |
||
npmPackages: ['react', 'react-dom', 'react-scripts'], | ||
npmGlobalPackages: ['create-react-app'], | ||
}, | ||
{ | ||
clipboard: true, | ||
duplicates: true, | ||
showNotFound: true, | ||
} | ||
) | ||
.then(console.log) | ||
.then(() => console.log(chalk.green('Copied To Clipboard!\n'))); | ||
} | ||
|
||
if (typeof projectName === 'undefined') { | ||
if (program.info) { | ||
envinfo.print({ | ||
packages: ['react', 'react-dom', 'react-scripts'], | ||
noNativeIDE: true, | ||
duplicates: true, | ||
}); | ||
process.exit(0); | ||
} | ||
console.error('Please specify the project directory:'); | ||
console.log( | ||
` ${chalk.cyan(program.name())} ${chalk.green('<project-directory>')}` | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ | |
"chalk": "^1.1.3", | ||
"commander": "^2.9.0", | ||
"cross-spawn": "^4.0.0", | ||
"envinfo": "3.4.2", | ||
"envinfo": "5.2.0", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be 5.4.0, right? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yup 👍 |
||
"fs-extra": "^5.0.0", | ||
"hyperquest": "^2.1.2", | ||
"react-dev-utils": "^5.0.0", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think React should be capitalized.