Skip to content

Upgrade babel 7#995

Merged
yangshun merged 3 commits into
facebook:masterfrom
fiennyangeln:upgrade-babel-version
Sep 30, 2018
Merged

Upgrade babel 7#995
yangshun merged 3 commits into
facebook:masterfrom
fiennyangeln:upgrade-babel-version

Conversation

@fiennyangeln

Copy link
Copy Markdown
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

@yangshun yangshun left a comment

Copy link
Copy Markdown
Contributor

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

@yangshun yangshun left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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

docusaurus-bot commented Sep 29, 2018

Copy link
Copy Markdown
Contributor

Deploy preview for docusaurus-preview ready!

Built with commit 978460f

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

@endiliey endiliey left a comment

Copy link
Copy Markdown
Contributor

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?


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

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

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

@yangshun yangshun left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, thanks!

@yangshun
yangshun merged commit 0f85352 into facebook:master Sep 30, 2018
mrizwanashiq pushed a commit to mrizwanashiq/docusaurus that referenced this pull request Jun 25, 2026
* Upgrade babel 7
Use custom transform for jest to handle docs test since there is
path change in there

* change all version of babel dependency

* - add silent to yarn build
- add babel/types to expose  method used in translate-plugin
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.

5 participants