Skip to content

Commit 215712e

Browse files
committed
【deps】"video.js": "^7.21.6",打包由uglify-es修改为terser
AI-GEN: 80% Claude
1 parent 9acb6a0 commit 215712e

2 files changed

Lines changed: 16 additions & 16 deletions

File tree

‎package.json‎

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@
1717
"release-mapboxgl": "npm run release-mapboxgl-es5 && npm run release-mapboxgl-es6",
1818
"release-maplibregl": "npm run release-maplibregl-es5 && npm run release-maplibregl-es6",
1919
"release-classic": "npm run release-classic-es5 && npm run release-classic-es6",
20-
"release-leaflet-es5": "cross-env moduleVersion=es5 npm run deploy-leaflet && uglifyjs ./dist/leaflet/iclient-leaflet.js --ecma 5 --comments /iclient-/i -c -m -o ./dist/leaflet/iclient-leaflet.min.js && cleancss -o ./dist/leaflet/iclient-leaflet.min.css ./dist/leaflet/iclient-leaflet.css",
21-
"release-openlayers-es5": "cross-env moduleVersion=es5 npm run deploy-openlayers && uglifyjs ./dist/openlayers/iclient-openlayers.js --ecma 5 --comments /iclient-/i -c -m -o ./dist/openlayers/iclient-openlayers.min.js && cleancss -o ./dist/openlayers/iclient-openlayers.min.css ./dist/openlayers/iclient-openlayers.css",
22-
"release-ol-es5": "cross-env moduleVersion=es5 npm run deploy-ol && uglifyjs ./dist/ol/iclient-ol.js --ecma 5 --comments /iclient-/i -c -m -o ./dist/ol/iclient-ol.min.js && cleancss -o ./dist/ol/iclient-ol.min.css ./dist/ol/iclient-ol.css",
23-
"release-mapboxgl-es5": "cross-env moduleVersion=es5 npm run deploy-mapboxgl && uglifyjs ./dist/mapboxgl/iclient-mapboxgl.js --ecma 5 --comments /iclient-/i -c -m -o ./dist/mapboxgl/iclient-mapboxgl.min.js && cleancss -o ./dist/mapboxgl/iclient-mapboxgl.min.css ./dist/mapboxgl/iclient-mapboxgl.css",
24-
"release-classic-es5": "cross-env moduleVersion=es5 npm run deploy-classic && uglifyjs ./dist/classic/iclient-classic.js --ecma 5 --comments /iclient-/i -c -m -o ./dist/classic/iclient-classic.min.js",
25-
"release-leaflet-es6": "cross-env moduleVersion=es6 npm run deploy-leaflet && node ./node_modules/uglify-es/bin/uglifyjs ./dist/leaflet/iclient-leaflet-es6.js --ecma 6 --comments /iclient-/i -c -m -o ./dist/leaflet/iclient-leaflet-es6.min.js && cleancss -o ./dist/leaflet/iclient-leaflet.min.css ./dist/leaflet/iclient-leaflet.css",
26-
"release-openlayers-es6": "cross-env moduleVersion=es6 npm run deploy-openlayers && node ./node_modules/uglify-es/bin/uglifyjs ./dist/openlayers/iclient-openlayers-es6.js --ecma 6 --comments /iclient-/i -c -m -o ./dist/openlayers/iclient-openlayers-es6.min.js && cleancss -o ./dist/openlayers/iclient-openlayers.min.css ./dist/openlayers/iclient-openlayers.css",
27-
"release-ol-es6": "cross-env moduleVersion=es6 npm run deploy-ol && node ./node_modules/uglify-es/bin/uglifyjs ./dist/ol/iclient-ol-es6.js --ecma 6 --comments /iclient-/i -c -m -o ./dist/ol/iclient-ol-es6.min.js && cleancss -o ./dist/ol/iclient-ol.min.css ./dist/ol/iclient-ol.css",
28-
"release-mapboxgl-es6": "cross-env moduleVersion=es6 npm run deploy-mapboxgl && node ./node_modules/uglify-es/bin/uglifyjs ./dist/mapboxgl/iclient-mapboxgl-es6.js --ecma 6 --comments /iclient-/i -c -m -o ./dist/mapboxgl/iclient-mapboxgl-es6.min.js && cleancss -o ./dist/mapboxgl/iclient-mapboxgl.min.css ./dist/mapboxgl/iclient-mapboxgl.css",
29-
"release-classic-es6": "cross-env moduleVersion=es6 npm run deploy-classic && node ./node_modules/uglify-es/bin/uglifyjs ./dist/classic/iclient-classic-es6.js --ecma 6 --comments /iclient-/i -c -m -o ./dist/classic/iclient-classic-es6.min.js",
30-
"release-maplibregl-es5": "cross-env moduleVersion=es5 npm run deploy-maplibregl && uglifyjs ./dist/maplibregl/iclient-maplibregl.js --ecma 5 --comments /iclient-/i -c -m -o ./dist/maplibregl/iclient-maplibregl.min.js && cleancss -o ./dist/maplibregl/iclient-maplibregl.min.css ./dist/maplibregl/iclient-maplibregl.css",
31-
"release-maplibregl-es6": "cross-env moduleVersion=es6 npm run deploy-maplibregl && node ./node_modules/uglify-es/bin/uglifyjs ./dist/maplibregl/iclient-maplibregl-es6.js --ecma 6 --comments /iclient-/i -c -m -o ./dist/maplibregl/iclient-maplibregl-es6.min.js && cleancss -o ./dist/maplibregl/iclient-maplibregl.min.css ./dist/maplibregl/iclient-maplibregl.css",
20+
"release-leaflet-es5": "cross-env moduleVersion=es5 npm run deploy-leaflet && terser ./dist/leaflet/iclient-leaflet.js --ecma 5 --comments /iclient-/i -c -m -o ./dist/leaflet/iclient-leaflet.min.js && cleancss -o ./dist/leaflet/iclient-leaflet.min.css ./dist/leaflet/iclient-leaflet.css",
21+
"release-openlayers-es5": "cross-env moduleVersion=es5 npm run deploy-openlayers && terser ./dist/openlayers/iclient-openlayers.js --ecma 5 --comments /iclient-/i -c -m -o ./dist/openlayers/iclient-openlayers.min.js && cleancss -o ./dist/openlayers/iclient-openlayers.min.css ./dist/openlayers/iclient-openlayers.css",
22+
"release-ol-es5": "cross-env moduleVersion=es5 npm run deploy-ol && terser ./dist/ol/iclient-ol.js --ecma 5 --comments /iclient-/i -c -m -o ./dist/ol/iclient-ol.min.js && cleancss -o ./dist/ol/iclient-ol.min.css ./dist/ol/iclient-ol.css",
23+
"release-mapboxgl-es5": "cross-env moduleVersion=es5 npm run deploy-mapboxgl && terser ./dist/mapboxgl/iclient-mapboxgl.js --ecma 5 --comments /iclient-/i -c -m -o ./dist/mapboxgl/iclient-mapboxgl.min.js && cleancss -o ./dist/mapboxgl/iclient-mapboxgl.min.css ./dist/mapboxgl/iclient-mapboxgl.css",
24+
"release-classic-es5": "cross-env moduleVersion=es5 npm run deploy-classic && terser ./dist/classic/iclient-classic.js --ecma 5 --comments /iclient-/i -c -m -o ./dist/classic/iclient-classic.min.js",
25+
"release-leaflet-es6": "cross-env moduleVersion=es6 npm run deploy-leaflet && terser ./dist/leaflet/iclient-leaflet-es6.js --ecma 6 --comments /iclient-/i -c -m -o ./dist/leaflet/iclient-leaflet-es6.min.js && cleancss -o ./dist/leaflet/iclient-leaflet.min.css ./dist/leaflet/iclient-leaflet.css",
26+
"release-openlayers-es6": "cross-env moduleVersion=es6 npm run deploy-openlayers && terser ./dist/openlayers/iclient-openlayers-es6.js --ecma 6 --comments /iclient-/i -c -m -o ./dist/openlayers/iclient-openlayers-es6.min.js && cleancss -o ./dist/openlayers/iclient-openlayers.min.css ./dist/openlayers/iclient-openlayers.css",
27+
"release-ol-es6": "cross-env moduleVersion=es6 npm run deploy-ol && terser ./dist/ol/iclient-ol-es6.js --ecma 6 --comments /iclient-/i -c -m -o ./dist/ol/iclient-ol-es6.min.js && cleancss -o ./dist/ol/iclient-ol.min.css ./dist/ol/iclient-ol.css",
28+
"release-mapboxgl-es6": "cross-env moduleVersion=es6 npm run deploy-mapboxgl && terser ./dist/mapboxgl/iclient-mapboxgl-es6.js --ecma 6 --comments /iclient-/i -c -m -o ./dist/mapboxgl/iclient-mapboxgl-es6.min.js && cleancss -o ./dist/mapboxgl/iclient-mapboxgl.min.css ./dist/mapboxgl/iclient-mapboxgl.css",
29+
"release-classic-es6": "cross-env moduleVersion=es6 npm run deploy-classic && terser ./dist/classic/iclient-classic-es6.js --ecma 6 --comments /iclient-/i -c -m -o ./dist/classic/iclient-classic-es6.min.js",
30+
"release-maplibregl-es5": "cross-env moduleVersion=es5 npm run deploy-maplibregl && terser ./dist/maplibregl/iclient-maplibregl.js --ecma 5 --comments /iclient-/i -c -m -o ./dist/maplibregl/iclient-maplibregl.min.js && cleancss -o ./dist/maplibregl/iclient-maplibregl.min.css ./dist/maplibregl/iclient-maplibregl.css",
31+
"release-maplibregl-es6": "cross-env moduleVersion=es6 npm run deploy-maplibregl && terser ./dist/maplibregl/iclient-maplibregl-es6.js --ecma 6 --comments /iclient-/i -c -m -o ./dist/maplibregl/iclient-maplibregl-es6.min.js && cleancss -o ./dist/maplibregl/iclient-maplibregl.min.css ./dist/maplibregl/iclient-maplibregl.css",
3232
"deploy": "webpack --color",
3333
"deploy-leaflet": "webpack --config ./build/webpack.config.leaflet.js --color",
3434
"deploy-openlayers": "webpack --config ./build/webpack.config.openlayers.js --color",
@@ -50,7 +50,7 @@
5050
"pre-publish": "node ./build/publish.js --leaflet && node ./build/publish.js --openlayers && node ./build/publish.js --mapboxgl && node ./build/publish.js --maplibregl && node ./build/publish.js --classic",
5151
"deploy-custom-webmapv2base": "webpack --config ./build/custom/webpack.config.common-webmapv2base.js --color && rimraf ./custom-dist/iclient-common/iclient-common-webmapv2base.js.LICENSE.txt",
5252
"deploy-custom-common": "webpack --config ./build/custom/webpack.config.common.js --color && rimraf ./custom-dist/iclient-common/iclient-common.js.LICENSE.txt",
53-
"deploy-custom-mapboxgl-es5": "cross-env moduleVersion=es5 webpack --config ./build/custom/webpack.config.mapboxgl.js --color && uglifyjs ./custom-dist/iclient-mapboxgl/iclient-mapboxgl.js --ecma 5 --comments /iclient-/i -c -m -o ./custom-dist/iclient-mapboxgl/iclient-mapboxgl.min.js && cleancss -o ./custom-dist/iclient-mapboxgl/iclient-mapboxgl.min.css ./custom-dist/iclient-mapboxgl/iclient-mapboxgl.css && rimraf ./custom-dist/iclient-mapboxgl/iclient-mapboxgl.js ./custom-dist/iclient-mapboxgl/iclient-mapboxgl.css",
53+
"deploy-custom-mapboxgl-es5": "cross-env moduleVersion=es5 webpack --config ./build/custom/webpack.config.mapboxgl.js --color && terser ./custom-dist/iclient-mapboxgl/iclient-mapboxgl.js --ecma 5 --comments /iclient-/i -c -m -o ./custom-dist/iclient-mapboxgl/iclient-mapboxgl.min.js && cleancss -o ./custom-dist/iclient-mapboxgl/iclient-mapboxgl.min.css ./custom-dist/iclient-mapboxgl/iclient-mapboxgl.css && rimraf ./custom-dist/iclient-mapboxgl/iclient-mapboxgl.js ./custom-dist/iclient-mapboxgl/iclient-mapboxgl.css",
5454
"deploy-custom-mapboxgl": "npm run deploy-custom-webmapv2base && npm run deploy-custom-common && npm run deploy-custom-mapboxgl-es5",
5555
"publish": "npm run pre-publish && cd ./src/common && npm publish && cd ../leaflet && npm publish && cd ../openlayers && npm publish && cd ../mapboxgl && npm publish && cd ../maplibregl && npm publish && cd ../classic && npm publish"
5656
},
@@ -132,7 +132,7 @@
132132
"serve-index": "^1.9.1",
133133
"shelljs": "^0.8.4",
134134
"style-loader": "^2.0.0",
135-
"uglify-es": "^3.3.9",
135+
"terser": "^5.44.0",
136136
"util": "^0.12.4",
137137
"watchify": "^3.11.1",
138138
"webpack": "^5.1.3",
@@ -179,7 +179,7 @@
179179
"rbush": "^2.0.2",
180180
"three": "0.150.1",
181181
"urijs": "^1.19.11",
182-
"video.js": "^7.10.2",
182+
"video.js": "^7.21.6",
183183
"videojs-flvjs-es6": "^1.0.1",
184184
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz"
185185
},

‎src/common/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"urijs": "^1.19.11",
4242
"flv.js": "^1.6.2",
4343
"three": "0.150.1",
44-
"video.js": "^7.10.2",
44+
"video.js": "^7.21.6",
4545
"videojs-flvjs-es6": "^1.0.1",
4646
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz"
4747
}

0 commit comments

Comments
 (0)