Skip to content
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

Merged
merged 1 commit into from Apr 8, 2020
Merged

refactor(v2): enhance CLI experience #2556

merged 1 commit into from Apr 8, 2020

Conversation

RDIL
Copy link
Contributor

@RDIL RDIL commented Apr 7, 2020

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.

Signed-off-by: Reece Dunham <me@rdil.rocks>
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Apr 7, 2020
@docusaurus-bot
Copy link
Contributor

Deploy preview for docusaurus-2 ready!

Built with commit d196aac

https://deploy-preview-2556--docusaurus-2.netlify.com

@@ -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)',
Copy link
Contributor

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 = '';
Copy link
Contributor

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.

@yangshun yangshun added the pr: polish This PR adds a very minor behavior improvement that users will enjoy. label Apr 8, 2020
@yangshun yangshun changed the title refactor(v2): Enhance CLI experience. refactor(v2): enhance CLI experience Apr 8, 2020
@yangshun yangshun merged commit 04a420d into facebook:master Apr 8, 2020
yangshun added a commit that referenced this pull request Apr 8, 2020
@lex111 lex111 added this to the v2.0.0-alpha.51 milestone Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: polish This PR adds a very minor behavior improvement that users will enjoy.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants