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

Upgrade babel 7 #995

Merged
merged 3 commits into from Sep 30, 2018
Merged

Conversation

fiennyangeln
Copy link
Contributor

Use custom transform for jest to handle docs test since there is
path change in there

Motivation

#984
(Write your motivation here.)

Have you read the Contributing Guidelines on pull requests?

Yes
(Write your answer here.)

Test Plan

  1. Go to v1 folder
  2. yarn && yarn test

Related PRs

(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/facebook/docusaurus, and link to your PR here.)

@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Sep 29, 2018
Copy link
Contributor

@yangshun yangshun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Will let @endiliey take a second look

Copy link
Contributor

@yangshun yangshun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The formatting and tests are failing, could you have a second look @fiennyangeln

Use custom transform for jest to handle docs test since there is
path change in there
@fiennyangeln
Copy link
Contributor Author

@yangshun I just discover it happen because I had a build in the website directory previously.. Thats why the test seems fine it my computer. Will investigate tomorrow

@docusaurus-bot
Copy link
Contributor

docusaurus-bot commented Sep 29, 2018

Deploy preview for docusaurus-preview ready!

Built with commit 978460f

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

Copy link
Contributor

@endiliey endiliey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just slight nits. We might need to move v2 to Babel 7 as well. Wanna send a PR?

@@ -28,7 +28,7 @@ let outputAssetsFiles = [];

function generateSite() {
shell.cd('website');
shell.exec('yarn build', {silent: true});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is intended. See #896

- add babel/types to expose  method used in translate-plugin
@fiennyangeln
Copy link
Contributor Author

@endiliey ok! let's do it in a different PR?

Copy link
Contributor

@yangshun yangshun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants