-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
refactor(v2): enhance CLI experience #2556
Conversation
Signed-off-by: Reece Dunham <me@rdil.rocks>
Deploy preview for docusaurus-2 ready! Built with commit d196aac |
@@ -39,15 +39,15 @@ cli | |||
.description('Build website') | |||
.option( | |||
'--bundle-analyzer', | |||
'Visualize size of webpack output files with an interactive zoomable treemap (default = false)', | |||
'Visualize size of webpack output files with an interactive zoomable treemap (default: disabled)', |
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 we should retain the boolean values here as it's much easier for the user to know what value to use. Could you change them back?
: // GitHub enterprise hosting. | ||
`https://${githubHost}/pages/${organizationName}/${projectName}`; | ||
shell.echo(`Website is live at: ${websiteURL}`); | ||
let websiteURL = ''; |
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'm going to revert this section since it's not a trivial change. You can submit a new PR just for these changes.
Signed-off-by: Reece Dunham me@rdil.rocks
Motivation
The CLI had a few problems with grammar mistakes, some inconsistancies, and just some other stuff in general that I made better based on my trials of d2.
Have you read the Contributing Guidelines on pull requests?
I have contributed before, yet I should have read them.
Also I ran prettier on the docs (
yarn prettier-docs
) because my IDE (WebStorm) was complaining about it.Test Plan
I tried out the new CLI and I think its better.
Related PRs
None.
By opening this PR I understand and confirm that the work submitted is my own and have read and agreed to the Facebook contributor license agreement.