xref: /plugin/openlayersmap/ol/generate-info.js.diff (revision 751c8ef2960e0c3f229b6e36acfece4723f47f63)
1diff --git a/tasks/generate-info.js b/tasks/generate-info.js
2index ee9660554..49ca324c8 100644
3--- a/tasks/generate-info.js
4+++ b/tasks/generate-info.js
5@@ -70,7 +70,26 @@ function getPaths() {
6     walker.on('file', (root, stats, next) => {
7       const sourcePath = path.join(root, stats.name);
8       if (sourcePath.endsWith('.js')) {
9-        paths.push(sourcePath);
10+        if (
11+          sourcePath.toLowerCase().includes('webgl') ||
12+          sourcePath.toLowerCase().includes('geotiff') ||
13+          sourcePath.toLowerCase().includes('gml') ||
14+          sourcePath.toLowerCase().includes('format/filter') ||
15+          sourcePath.toLowerCase().includes('format/xml') ||
16+          sourcePath.toLowerCase().includes('wmscapabilities') ||
17+          sourcePath.toLowerCase().includes('format/esrijson') ||
18+          sourcePath.toLowerCase().includes('format/wk') ||
19+          sourcePath.toLowerCase().includes('iiif') ||
20+          sourcePath.toLowerCase().includes('vectortile') ||
21+          sourcePath.toLowerCase().includes('mapguide') ||
22+          sourcePath.toLowerCase().includes('cartodb') ||
23+          sourcePath.toLowerCase().includes('zoomify') ||
24+          sourcePath.toLowerCase().includes('mapbox')
25+        ) {
26+          // skip
27+        } else {
28+          paths.push(sourcePath);
29+        }
30       }
31       next();
32     });
33