-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[dev/server] ignore irrelevant changes in plugins #11884
[dev/server] ignore irrelevant changes in plugins #11884
Conversation
src/cli/cluster/cluster_manager.js
Outdated
...settings.plugins.paths, | ||
...settings.plugins.scanDirs, | ||
], | ||
[ |
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.
do we want to remove the outer array here? i don't think the ignore param expects a nested array
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.
is it worth ignoring __test__ 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.
@jbudz I think __tests__
is covered already in the regex below
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.
Whoops, it does, oddly enough, but that wasn't intended
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.
is it worth ignoring test too?
Yeah, __tests__
directories are ignored at any level
* [dev/server] ignore changes in test,build,scripts,docs dirs at root of plugins * [dev/clusterManager] unwrap extra ignore paths (cherry picked from commit c2ccab8)
5.x/5.5: 2d4e8fa |
* [dev/server] ignore changes in test,build,scripts,docs dirs at root of plugins * [dev/clusterManager] unwrap extra ignore paths
The dev server is currently watching all directories within plugins and scanDirs that don't match
/[\\\/](\..*|node_modules|bower_components|public|__tests__|coverage)[\\\/]/
This pr adds to that list and excludes the
test
,build
,target
,scripts
anddocs
directories when they are at the root of a plugin.