|
11 | 11 | "scripts": {
|
12 | 12 | "lint": "eslint src",
|
13 | 13 | "release": "npm run release-leaflet && npm run release-openlayers && npm run release-mapboxgl && npm run release-classic",
|
14 |
| - "release-leaflet": "webpack ./src/leaflet/index.js --config ./build/webpack.config.leaflet.js --color && npm run compress-leaflet", |
15 |
| - "release-openlayers": "webpack ./src/openlayers/index.js --config ./build/webpack.config.openlayers.js --color && npm run compress-openlayers", |
16 |
| - "release-mapboxgl": "webpack ./src/mapboxgl/index.js --config ./build/webpack.config.mapboxgl.js --color && npm run compress-mapboxgl", |
17 |
| - "release-classic": "webpack ./src/classic/index.js --config ./build/webpack.config.classic.js --color && npm run compress-classic", |
| 14 | + "release-leaflet": "npm run deploy-leaflet ./src/leaflet/index.js ./src/leaflet/css/index.js && npm run compress-leaflet", |
| 15 | + "release-openlayers": "npm run deploy-openlayers ./src/openlayers/index.js ./src/openlayers/css/index.js && npm run compress-openlayers", |
| 16 | + "release-mapboxgl": "npm run deploy-mapboxgl ./src/mapboxgl/index.js && npm run compress-mapboxgl", |
| 17 | + "release-classic": "npm run deploy-classic ./src/classic/index.js && npm run compress-classic", |
18 | 18 | "deploy": "webpack --color",
|
19 | 19 | "deploy-leaflet": "webpack --config ./build/webpack.config.leaflet.js --color",
|
20 | 20 | "deploy-openlayers": "webpack --config ./build/webpack.config.openlayers.js --color",
|
21 | 21 | "deploy-mapboxgl": "webpack --config ./build/webpack.config.mapboxgl.js --color",
|
22 | 22 | "deploy-classic": "webpack --config ./build/webpack.config.classic.js --color",
|
23 | 23 | "compress-openlayers": "uglifyjs --comments /Copyright©/i -c -m -o ./dist/iclient9-openlayers.min.js -- ./dist/iclient9-openlayers.js && cleancss -o ./dist/iclient9-openlayers.min.css ./dist/iclient9-openlayers.css",
|
24 | 24 | "compress-leaflet": "uglifyjs --comments /Copyright©/i -c -m --ie8 -o ./dist/iclient9-leaflet.min.js -- ./dist/iclient9-leaflet.js && cleancss -o ./dist/iclient9-leaflet.min.css ./dist/iclient9-leaflet.css",
|
25 |
| - "compress-mapboxgl": "uglifyjs --comments /Copyright©/i -c -m -o ./dist/iclient9-mapboxgl.min.js -- ./dist/iclient9-mapboxgl.js", |
| 25 | + "compress-mapboxgl": "uglifyjs --comments /Copyright©/i -c -m -o ./dist/iclient9-mapboxgl.min.js -- ./dist/iclient9-mapboxgl.js && cleancss -o ./dist/iclient9-mapboxgl.min.css ./dist/iclient9-mapboxgl.css", |
26 | 26 | "compress-classic": "uglifyjs --comments /Copyright©/i -c -m -o ./dist/iclient-classic.min.js -- ./dist/iclient-classic.js",
|
27 | 27 | "package": "node ./build/pack.js",
|
28 | 28 | "package-debug": "node ./build/pack.js - debug",
|
|
34 | 34 | "build-docs-openlayers": "jsdoc -c ./build/jsdocs/openlayers/docs.json -R ./build/jsdocs/openlayers/index.md",
|
35 | 35 | "build-docs-mapboxgl": "jsdoc -c ./build/jsdocs/mapboxgl/docs.json -R ./build/jsdocs/mapboxgl/index.md",
|
36 | 36 | "build-docs-classic": "jsdoc -c ./build/jsdocs/classic/docs.json -R ./build/jsdocs/classic/index.md",
|
37 |
| - "release-publish": "cd ./src/common && npm publish && cd ../leaflet && npm publish && cd ../openlayers && npm publish && cd ../mapboxgl && npm publish && cd ../classic && npm publish" |
| 37 | + "prepublish": "node ./build/publish.js --leaflet && node ./build/publish.js --openlayers && node ./build/publish.js --mapboxgl && node ./build/publish.js --classic", |
| 38 | + "publish": "npm run prepublish && cd ./src/common && npm publish && cd ../leaflet && npm publish && cd ../openlayers && npm publish && cd ../mapboxgl && npm publish && cd ../classic && npm publish" |
38 | 39 | },
|
39 | 40 | "keywords": [
|
40 | 41 | "SuperMap",
|
|
99 | 100 | "@mapbox/vector-tile": "1.3.0",
|
100 | 101 | "@supermap/iclient-common": "file:src/common",
|
101 | 102 | "@turf/turf": "^4.7.1",
|
102 |
| - "echarts": "4.0.4", |
103 | 103 | "deck.gl": "5.1.3",
|
| 104 | + "echarts": "4.0.4", |
104 | 105 | "elasticsearch": "13.0.1",
|
105 | 106 | "express": "^4.16.3",
|
106 | 107 | "fetch-ie8": "^1.5.0",
|
|
110 | 111 | "lodash.topairs": "^4.3.0",
|
111 | 112 | "mapbox-gl": "0.43.0",
|
112 | 113 | "mapv": "2.0.14",
|
| 114 | + "ol-mapbox-style": "^2.11.2", |
113 | 115 | "openlayers": "^4.6.4",
|
114 | 116 | "pbf": "3.0.2",
|
115 | 117 | "proj4": "2.3.15",
|
116 | 118 | "promise-polyfill": "^6.0.2",
|
117 |
| - "ol-mapbox-style": "^2.11.2", |
118 | 119 | "three": "^0.90.0"
|
119 | 120 | }
|
120 | 121 | }
|
0 commit comments