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): minor code refactoring on component creator #2080

Merged
merged 1 commit into from
Dec 3, 2019

Conversation

endiliey
Copy link
Contributor

@endiliey endiliey commented Dec 3, 2019

Motivation

Minor code refactoring. Reuse https://github.com/facebook/docusaurus/blob/master/packages/docusaurus/src/client/flat.js function in componentcreator which has test https://github.com/facebook/docusaurus/blob/master/packages/docusaurus/src/client/__tests__/flat.test.js

Since the flat function is also used in docusaurus.js.

For readability purpose.

Have you read the Contributing Guidelines on pull requests?

yes

Test Plan

Nothing broke
image

@endiliey endiliey added the pr: polish This PR adds a very minor behavior improvement that users will enjoy. label Dec 3, 2019
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Dec 3, 2019
@endiliey endiliey added pr: maintenance This PR does not produce any behavior differences to end users when upgrading. and removed pr: polish This PR adds a very minor behavior improvement that users will enjoy. labels Dec 3, 2019
@docusaurus-bot
Copy link
Contributor

Deploy preview for docusaurus-2 ready!

Built with commit 109124b

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

@docusaurus-bot
Copy link
Contributor

Deploy preview for docusaurus-preview ready!

Built with commit 109124b

https://deploy-preview-2080--docusaurus-preview.netlify.com

@yangshun yangshun merged commit b26948d into master Dec 3, 2019
@endiliey endiliey deleted the refactor-flat branch December 6, 2019 05:37
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: maintenance This PR does not produce any behavior differences to end users when upgrading.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants