-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Expand file tree
/
Copy pathpackage.json
More file actions
281 lines (281 loc) · 10.3 KB
/
Copy pathpackage.json
File metadata and controls
281 lines (281 loc) · 10.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
{
"name": "mapbox-gl",
"description": "A WebGL interactive maps library",
"version": "3.31.0-rc.1",
"main": "dist/mapbox-gl.js",
"style": "dist/mapbox-gl.css",
"types": "dist/mapbox-gl.d.ts",
"license": "SEE LICENSE IN LICENSE.txt",
"type": "module",
"repository": {
"type": "git",
"url": "git://github.com/mapbox/mapbox-gl-js.git"
},
"exports": {
".": {
"types": "./dist/mapbox-gl.d.ts",
"default": "./dist/mapbox-gl.js"
},
"./esm": {
"types": "./dist/esm/mapbox-gl.d.ts",
"default": "./dist/esm/mapbox-gl.js"
},
"./dist/*": "./dist/*",
"./mapbox-gl.css": "./dist/mapbox-gl.css",
"./package.json": "./package.json"
},
"workspaces": [
"src/style-spec",
"plugins/mapbox-gl-pmtiles-provider",
"test/bundlers/*",
"test/build/typings"
],
"devDependencies": {
"@actions/core": "^3.0.1",
"@e18e/eslint-plugin": "^0.8.0",
"@eslint/compat": "^2.1.0",
"@eslint/eslintrc": "^3.3.5",
"@eslint/js": "^10.0.1",
"@mapbox/mapbox-gl-styles": "^2.2.0",
"@mapbox/mapbox-gl-supported": "^4.0.0",
"@mapbox/mvt-fixtures": "^4.0.0",
"@mapbox/point-geometry": "^1.1.0",
"@mapbox/tiny-sdf": "^2.2.0",
"@mapbox/unitbezier": "^1.0.0",
"@mapbox/vector-tile": "^3.0.0",
"@octokit/rest": "^22.0.1",
"@rollup/plugin-commonjs": "^29.0.2",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^16.0.3",
"@rollup/plugin-replace": "^6.0.3",
"@rollup/plugin-strip": "^3.0.4",
"@rollup/plugin-terser": "^1.0.0",
"@rollup/plugin-virtual": "^3.0.2",
"@size-limit/file": "^13.0.1",
"@tweakpane/core": "^2.0.5",
"@types/geojson": "^7946.0.16",
"@types/node": "^26.0.0",
"@types/offscreencanvas": "^2019.7.3",
"@typescript/native": "npm:typescript@^7.0.2",
"@vitest/browser-playwright": "^5.0.0",
"@vitest/ui": "^5.0.0",
"browserslist-to-esbuild": "^2.1.1",
"cssnano": "^9.0.1",
"diff": "^9.0.0",
"earcut": "^3.0.2",
"esbuild": "^0.28.0",
"eslint": "^10.4.0",
"eslint-config-mourner": "^5.0.1",
"eslint-import-resolver-typescript": "^4.4.4",
"eslint-plugin-html": "^8.1.4",
"eslint-plugin-import-x": "^4.16.2",
"eslint-plugin-jsdoc": "^64.0.1",
"geojson-vt": "^5.0.2",
"gl-matrix": "^3.4.4",
"kdbush": "^4.1.0",
"martinez-polygon-clipping": "^0.8.1",
"npm-run-all2": "^9.0.1",
"pbf": "^5.1.0",
"pixelmatch": "^7.2.0",
"playwright": "^1.60.0",
"postcss": "^8.5.15",
"postcss-cli": "^12.0.0",
"postcss-inline-svg": "^6.0.0",
"potpack": "^2.1.0",
"rollup": "^4.60.4",
"rollup-plugin-dts": "^6.4.1",
"rollup-plugin-esbuild": "^6.2.1",
"rollup-plugin-visualizer": "^7.0.1",
"serve-static": "^2.2.1",
"size-limit": "^13.0.1",
"stylelint": "^17.12.0",
"stylelint-config-standard": "^40.0.0",
"supercluster": "^9.1.0",
"tinyqueue": "^3.0.0",
"tsx": "^4.23.0",
"tweakpane": "^4.0.5",
"typescript": "npm:@typescript/typescript6@^6.0.2",
"typescript-eslint": "^8.63.0",
"vite-plugin-arraybuffer": "^0.1.4",
"vitest": "^5.0.0",
"yeahjs": "^0.4.1"
},
"scripts": {
"build-dev": "rollup -c --environment BUILD:dev",
"watch-dev": "rollup -c --environment BUILD:dev --watch",
"watch-esm": "rollup -c rollup.config.esm.ts --environment BUILD:dev --watch",
"build-esm-dev": "rollup -c rollup.config.esm.ts --environment BUILD:dev",
"build-prod": "rollup -c --environment BUILD:production,MINIFY:true",
"build-esm-prod": "rollup -c rollup.config.esm.ts --environment BUILD:production,MINIFY:true",
"build-esm-prod-cdn": "ESM_TARGET=cdn rollup -c rollup.config.esm.ts --environment BUILD:production,MINIFY:true",
"build-all": "run-p build-umd build-esm-dev build-esm-prod build-esm-prod-cdn build-csp",
"build-umd": "run-s build-dev build-prod",
"build-csp": "rollup -c rollup.config.csp.ts",
"build-css": "postcss -o dist/mapbox-gl.css src/css/mapbox-gl.css",
"build-style-spec": "npm run build --workspace src/style-spec && mkdir -p dist/style-spec && cp src/style-spec/dist/* dist/style-spec",
"build-dts": "rollup -c rollup.config.dts.ts",
"watch-css": "postcss --watch -o dist/mapbox-gl.css src/css/mapbox-gl.css",
"build-token": "node build/generate-access-token-script.ts",
"start-server": "node build/start-server.js",
"start": "run-p build-token watch-css watch-esm start-server",
"start-all": "run-p build-token watch-css watch-dev watch-esm start-server",
"prepare-release-pages": "ln -sfn $PWD/dist test/release/dist && ln -sfn $PWD/debug test/release/debug && cp debug/access_token_generated.js test/release/",
"start-release": "run-s build-token build-all build-css print-release-url prepare-release-pages start-server",
"lint": "eslint --cache .",
"lint-css": "stylelint 'src/css/mapbox-gl.css'",
"test": "run-s lint lint-css test-typings test-unit",
"test-suite": "run-s test-render test-query test-expressions",
"test-suite-clean": "find test/integration/{render,query, expressions}-tests -mindepth 2 -type d -exec test -e \"{}/actual.png\" \\; -not \\( -exec test -e \"{}/style.json\" \\; \\) -print | xargs -t rm -r",
"watch-unit": "vitest --config vitest.config.unit.ts",
"test-unit": "vitest --config vitest.config.unit.ts --run",
"test-usvg": "vitest --config vitest.config.usvg.ts --run",
"start-usvg": "esbuild src/data/usvg/usvg_pb_renderer.ts src/data/usvg/usvg_pb_decoder.ts --outdir=src/data/usvg/ --bundle --format=esm --watch --serve=9966 --servedir=.",
"test-build": "node --test --test-timeout 10000 test/build/*.test.js",
"pretest-bundlers": "./test/bundlers/pretest.sh",
"test-bundlers": "vitest run --config vitest.config.bundlers.ts",
"test-esm": "npx vitest run --config vitest.config.esm.ts",
"test-csp": "npm run build-token && vitest --config vitest.config.csp.ts --run",
"prewatch-render": "npm run build-dev",
"watch-render": "npx vitest watch --config vitest.config.render.ts",
"pretest-render": "npm run build-esm-dev",
"test-render": "npx vitest run --config vitest.config.render.ts",
"test-render-firefox": "RENDER_BROWSER=firefox npm run test-render",
"test-render-safari": "RENDER_BROWSER=webkit npm run test-render",
"pretest-render-dev": "npm run build-dev",
"test-render-dev": "RENDER_BUNDLE=dev npx vitest run --config vitest.config.render.ts",
"pretest-render-esm-prod": "npm run build-esm-prod",
"test-render-esm-prod": "RENDER_BUNDLE=esm-prod npx vitest run --config vitest.config.render.ts",
"pretest-render-prod": "npm run build-prod",
"test-render-prod": "RENDER_BUNDLE=prod npx vitest run --config vitest.config.render.ts",
"pretest-render-csp": "npm run build-csp",
"test-render-csp": "RENDER_BUNDLE=csp npx vitest run --config vitest.config.render.ts",
"watch-query": "npx vitest watch --config vitest.config.query.ts",
"pretest-query": "npm run build-esm-dev",
"test-query": "npx vitest run --config vitest.config.query.ts",
"test-expressions": "tsx ./test/expression.test.ts",
"test-typings": "tsx ./build/generate-typed-style-spec.ts && npm run tsc",
"test-style-spec": "npm test --workspace src/style-spec",
"prepublishOnly": "run-s build-all build-css build-style-spec build-dts",
"print-release-url": "node build/print-release-url.ts",
"size": "size-limit",
"bundle-size-diff": "bash internal/scripts/bundle-size-diff.sh",
"codegen": "tsx ./build/generate-style-code.ts && tsx ./build/generate-struct-arrays.ts && tsx ./build/generate-typed-style-spec.ts",
"generate-debug-index": "tsx ./build/generate-debug-index.ts",
"check-debug-pages": "tsx ./build/check-debug-pages.ts",
"check-changelog": "node ./build/check-changelog.ts",
"tsc": "tsc --build tsconfig.json",
"publish-release": "./internal/scripts/publish.ts",
"publish-cdn": "./internal/scripts/publish-cdn.ts",
"publish-alpha": "./internal/scripts/publish-alpha.ts",
"bump-version": "./internal/scripts/bump-version.ts",
"release": "./internal/scripts/release.ts"
},
"files": [
"dist/mapbox-gl*",
"dist/style-spec/",
"dist/esm/",
"dist/package.json",
"LICENSE.txt"
],
"size-limit": [
{
"gzip": true,
"limit": "600 kb",
"name": "ESM Core (gzip)",
"path": [
"dist/esm/mapbox-gl.js",
"dist/esm/core*.js",
"dist/esm/worker*.js",
"dist/esm/shared*.js"
]
},
{
"gzip": true,
"limit": "600 kb",
"name": "ESM Core + Lite (gzip)",
"path": [
"dist/esm/mapbox-gl.js",
"dist/esm/core*.js",
"dist/esm/worker*.js",
"dist/esm/shared*.js",
"dist/esm/lite.*.js"
]
},
{
"gzip": true,
"limit": "600 kb",
"name": "ESM Core + Standard (gzip)",
"path": [
"dist/esm/mapbox-gl.js",
"dist/esm/core*.js",
"dist/esm/worker*.js",
"dist/esm/shared*.js",
"dist/esm/lite.*.js",
"dist/esm/standard.*.js"
]
},
{
"gzip": true,
"limit": "600 kb",
"name": "ESM Core + Standard + HD (gzip)",
"path": [
"dist/esm/*.js"
]
},
{
"limit": "600 kb",
"name": "ESM Core (brotli)",
"path": [
"dist/esm/mapbox-gl.js",
"dist/esm/core*.js",
"dist/esm/worker*.js",
"dist/esm/shared*.js"
]
},
{
"limit": "600 kb",
"name": "ESM Core + Lite (brotli)",
"path": [
"dist/esm/mapbox-gl.js",
"dist/esm/core*.js",
"dist/esm/worker*.js",
"dist/esm/shared*.js",
"dist/esm/lite.*.js"
]
},
{
"limit": "600 kb",
"name": "ESM Core + Standard (brotli)",
"path": [
"dist/esm/mapbox-gl.js",
"dist/esm/core*.js",
"dist/esm/worker*.js",
"dist/esm/shared*.js",
"dist/esm/lite.*.js",
"dist/esm/standard.*.js"
]
},
{
"limit": "600 kb",
"name": "ESM Core + Standard + HD (brotli)",
"path": [
"dist/esm/*.js"
]
},
{
"limit": "600 kb",
"name": "ESM Core main thread (brotli)",
"path": [
"dist/esm/mapbox-gl.js",
"dist/esm/core*.js",
"dist/esm/shared*.js"
]
},
{
"gzip": true,
"limit": "600 kb",
"name": "UMD bundle (gzip)",
"path": "dist/mapbox-gl.js"
}
]
}