-
-
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
chore(v2): fix ignore paths and Prettier commands in themes #3865
Conversation
Deploy preview for docusaurus-2 ready! Built without sensitive environment variables with commit 22b8a4e |
Size Change: +18 B (0%) Total Size: 157 kB ℹ️ View Unchanged
|
.prettierignore
Outdated
packages/docusaurus/lib/ | ||
packages/docusaurus-init/lib/ | ||
packages/docusaurus-plugin-client-redirects/lib/ | ||
packages/docusaurus-*/lib/ |
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.
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.
For this is responsible .gitignore
, which do not include v1 lib
. I can update .gitignore
too.
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.
Ah, you mean the change should NOT exclude the files from v1 lib
, right?
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.
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.
yes :)
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.
This line in ignores deals with that, so Prettier and other tools will ignore all docusuaurs-*/lib
s but not the docusuaurs-1.x/lib
.
⚡️ Lighthouse report for the changes in this PR:
Lighthouse ran on https://deploy-preview-3865--docusaurus-2.netlify.app/classic/ |
Motivation
It looks like after latest addition of
lib-next
and some other changes Prettier started to format unnecessary files.This PR rewrites the
.prettierignore
path into more universal format and adds--ignore-path
flag to the Prettier command in themes, so the ignores defined in.prettierignore
are respected.Have you read the Contributing Guidelines on pull requests?
Yes.
Test Plan
Local run of:
yarn prettier
yarn --cwd ./packages/docusaurus-theme-bootstrap build
yarn lint
Related PRs
No.