-
Notifications
You must be signed in to change notification settings - Fork 29
Export: Exclude node_modules
and .git
paths from site export
#1264
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
base: trunk
Are you sure you want to change the base?
Conversation
const isNodeModulesDirectory = relativePath.includes( 'node_modules' ); | ||
const isGitDirectory = relativePath.includes( '.git' ); |
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.
I think it should be safe to exclude all those paths that include node_modules
or .git
in them, but happy to make it more strict if you think it's necessary. 🙂
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.
I agree IMO this should be strict enough! 👌
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.
Thanks @ivan-ottinger for working on this and for adding such detailed testing steps! 🙌
The changes LGTM and it's working great for me too! Thanks @epeicher for the handy tree listing command, it made screenshotting much easier! 😄
My site files | exported files |
---|---|
![]() |
![]() |
const isNodeModulesDirectory = relativePath.includes( 'node_modules' ); | ||
const isGitDirectory = relativePath.includes( '.git' ); |
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.
I agree IMO this should be strict enough! 👌
Related issues
Proposed Changes
node_modules
and.git
paths from site exportTesting Instructions
npm start
..git
andnode_modules
with some random files in them./wp-content/plugins
,/wp-content/themes
, etc. ....git
ornode_modules
directories present.Pre-merge Checklist