xref: /plugin/openlayersmap/ol/generate-info.js.diff (revision 361a92f48a13304c7c495c831ef5e2dad387b644)
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,30 @@ 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+          sourcePath.toLowerCase().includes('sentinelhub') ||
26+          sourcePath.toLowerCase().includes('flow') ||
27+          sourcePath.toLowerCase().includes('geozarr') ||
28+          sourcePath.toLowerCase().includes('ogcmap')
29+        ) {
30+          // skip adding these files to the paths array
31+        } else {
32+          paths.push(sourcePath);
33+        }
34       }
35       next();
36     });
37