Developers are now using automation tools to help build their websites. Tools like npm, bower, and composer create directories of files needed for the automation.
To ensure the best possible performance for extension discovery (modules, themes, etc.), Drupal now filters a hard-coded range of directory names in which Drupal extensions may not appear in.
The list of globally ignored directory names is defined in the RecursiveExtensionFilterIterator::$blacklist
property.
These directories are globally ignored in the recursive filesystem scan:
Object-oriented code subdirectories.
- src
- lib
- vendor
Front-end.
- assets
- bower_components
- css
- files
- images
- js
- misc
- node_modules
- templates
Legacy subdirectories.
- includes
Test subdirectories.
- fixtures
- Drupal