-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Grunt jshint:plugins: Ignore node_modules and common paths for built files. #13207
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1069,6 +1069,17 @@ module.exports = function(grunt) { | |
| '**/*.js', | ||
| '!**/*.min.js' | ||
| ], | ||
| // Prevent traversal into these directories during glob expansion. | ||
| // This is much faster than using negation patterns alone. | ||
| ignore: [ | ||
| '**/build/**', | ||
| '**/dist/**', | ||
| '**/gutenberg/**', | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wouldn't this technically be redundant since the relevant files in Gutenberg would themselves be ignored by the other globs?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Gutenberg contains folders that contain
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. One way to double check is: run this command with and without the Gutenberg glob: without the Gutenberg glob there are a few more Gutenberg directories being scanned. |
||
| '**/node_modules/**', | ||
| '**/packages/**', | ||
|
Comment on lines
+1075
to
+1079
|
||
| '**/test/**', | ||
| '**/vendor/**' | ||
| ], | ||
| /* | ||
| * Limit JSHint's run to a single specified plugin directory: | ||
| * | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
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 doesn't seem to be true as the folders matching these globs are skipped.