Skip to content

Commit 9bca542

Browse files
committed
【ci】依赖更新;doc 过滤
1 parent d3fbdfd commit 9bca542

5 files changed

Lines changed: 37 additions & 11 deletions

File tree

build/jsdocs/mapboxgl/docs.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@
6565
"src/common/security/KeyServiceParameter",
6666
"src/common/components/templates/TemplateBase",
6767
"src/mapboxgl/core/Util",
68-
"src/mapboxgl/overlay/L7/l7-render"
68+
"src/mapboxgl/overlay/L7/l7-render",
69+
"src/mapboxgl/mapping/utils"
6970
]
7071
},
7172
"plugins": ["plugins/markdown","../plugins/usage", "../plugins/moduleCategories"],

build/webpack.config.base.js

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,33 @@ function compareDependencies(pkgName, dependenciesToCompare, rootDependencies =
1616
});
1717
}
1818

19+
function checkRootDependencies(dependenciesToCompare, rootDependencies = pkg.dependencies) {
20+
const clientDepsList = Object.values(dependenciesToCompare);
21+
const clientNames = Object.keys(dependenciesToCompare);
22+
Object.keys(rootDependencies).forEach(name => {
23+
if (rootDependencies[name].includes('file:src/')){
24+
return;
25+
}
26+
if (!clientDepsList.some(deps => Object.keys(deps).some(item => item === name))) {
27+
console.log(chalk.red(`ERROR: The dependency ${name} version can not match in (${clientNames.join('|')}) package.json!\n`));
28+
}
29+
});
30+
}
31+
1932
const packageToClients = ['common', 'classic', 'leaflet', 'openlayers', 'mapboxgl', 'maplibregl'];
20-
packageToClients.forEach(client => {
33+
34+
const clientDepencies = packageToClients.reduce((list, client) => {
2135
// eslint-disable-next-line import/no-dynamic-require
2236
const clientPkg = require(`../src/${client}/package.json`);
23-
compareDependencies(clientPkg.name, clientPkg.dependencies);
24-
});
37+
list[clientPkg.name] = clientPkg.dependencies;
38+
return list;
39+
}, {});
40+
41+
for (const clientName in clientDepencies) {
42+
compareDependencies(clientName, clientDepencies[clientName]);
43+
}
44+
45+
checkRootDependencies(clientDepencies);
2546

2647
//包版本(ES6或者ES5)
2748
let moduleVersion = process.env.moduleVersion || 'es5';

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,11 @@
7373
"@babel/preset-env": "^7.23.8",
7474
"@babel/traverse": "^7.23.7",
7575
"@babel/types": "^7.23.6",
76+
"@elastic/elasticsearch": "^5.6.22",
7677
"@geoman-io/leaflet-geoman-free": "^2.14.2",
78+
"@sinonjs/text-encoding": "^0.7.2",
7779
"@supermap/babel-plugin-import": "^0.0.1",
80+
"@tensorflow/tfjs": "^3.9.0",
7881
"babel-eslint": "^10.1.0",
7982
"babel-loader": "^8.1.0",
8083
"babel-plugin-istanbul": "^6.0.0",
@@ -88,6 +91,7 @@
8891
"clean-css-cli": "^4.3.0",
8992
"commander": "^9.0.0",
9093
"copy-webpack-plugin": "^9.1.0",
94+
"core-js": "^3.30.2",
9195
"cross-env": "^7.0.2",
9296
"css-loader": "^6.7.1",
9397
"elasticsearch": "16.7.3",
@@ -116,12 +120,14 @@
116120
"open": "^8.4.0",
117121
"pngjs": "^6.0.0",
118122
"pre-commit": "^1.2.2",
123+
"process": "^0.11.10",
119124
"request": "^2.88.0",
120125
"selenium-server": "3.141.59",
121126
"serve-index": "^1.9.1",
122127
"shelljs": "^0.8.4",
123128
"style-loader": "^2.0.0",
124129
"uglify-es": "^3.3.9",
130+
"util": "^0.12.4",
125131
"watchify": "^3.11.1",
126132
"webpack": "^5.1.3",
127133
"webpack-cli": "4.2.0",
@@ -131,22 +137,19 @@
131137
"dependencies": {
132138
"@antv/g2": "^4.2.11",
133139
"@antv/g6": "^4.8.14",
134-
"@elastic/elasticsearch": "^5.6.22",
135140
"@mapbox/mapbox-gl-style-spec": "^14.3.0",
136141
"@mapbox/vector-tile": "1.3.1",
137-
"@sinonjs/text-encoding": "^0.7.2",
138142
"@supermap/iclient-common": "file:src/common",
139143
"@supermap/tile-decryptor": "^0.0.2",
140-
"@tensorflow/tfjs": "^3.9.0",
141144
"@turf/center": "^6.5.0",
142145
"@turf/turf": "6.5.0",
143146
"canvg": "3.0.10",
144-
"core-js": "^3.30.2",
145147
"echarts": "5.4.3",
146148
"fast-xml-parser": "^4.2.7",
147149
"fetch-ie8": "1.5.0",
148150
"fetch-jsonp": "1.1.3",
149151
"flatgeobuf": "3.23.1",
152+
"flv.js": "^1.6.2",
150153
"insert-css": "^2.0.0",
151154
"jsonsql": "0.2.5",
152155
"leaflet": "1.9.4",
@@ -161,14 +164,11 @@
161164
"node-forge": "^1.3.1",
162165
"ol": "6.14.1",
163166
"pbf": "3.2.1",
164-
"process": "^0.11.10",
165167
"proj4": "2.9.0",
166168
"promise-polyfill": "8.2.3",
167169
"rbush": "^2.0.2",
168170
"three": "0.150.1",
169171
"urijs": "^1.19.11",
170-
"util": "^0.12.4",
171-
"flv.js": "^1.6.2",
172172
"video.js": "^7.10.2",
173173
"videojs-flvjs-es6": "^1.0.1",
174174
"xlsx": "https://cdn.sheetjs.com/xlsx-0.19.3/xlsx-0.19.3.tgz"

src/common/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"fetch-ie8": "1.5.0",
2121
"fetch-jsonp": "1.1.3",
2222
"flatgeobuf": "3.23.1",
23+
"insert-css": "^2.0.0",
2324
"promise-polyfill": "8.2.3",
2425
"lodash.topairs": "4.3.0",
2526
"lodash.uniqby": "^4.7.0",

src/mapboxgl/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
"author": "SuperMap",
1616
"license": "Apache-2.0",
1717
"dependencies": {
18+
"@antv/g2": "^4.2.11",
19+
"@mapbox/mapbox-gl-style-spec": "^14.3.0",
20+
"@turf/center": "^6.5.0",
1821
"@turf/turf": "6.5.0",
1922
"mapv": "2.0.62",
2023
"mapbox-gl": "1.13.2",

0 commit comments

Comments
 (0)