Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / themes / contrib / bootstrap / grunt / clean-vendor-dirs.js
1 module.exports = function (grunt, options) {
2   'use strict';
3
4   // Register the "clean-vendor-dirs" task.
5   grunt.registerTask('clean-vendor-dirs', 'Ensures vendor directories do not cause Drupal to segfault. Read more in: MAINTAINERS.md.', function () {
6     var glob = [
7       'node_modules/**/*.info',
8       'bower_components/**/*.info',
9       'lib/**/*.info'
10     ];
11     var files = grunt.file.expand(glob);
12     if (files.length) {
13       files.forEach(function (file) {
14         grunt.log.ok('Removed ' + file);
15         grunt.file.delete(file, {force: true});
16       });
17     }
18     grunt.log.ok('Vendor directories clean!');
19   });
20
21 };