-
Notifications
You must be signed in to change notification settings - Fork 2.2k
/
package.json
177 lines (177 loc) · 7.63 KB
/
package.json
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
{
"name": "mapbox-gl",
"description": "A WebGL interactive maps library",
"version": "3.8.0-beta.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"
},
"workspaces": [
"src/style-spec",
"test/build/typings"
],
"dependencies": {
"@mapbox/jsonlint-lines-primitives": "^2.0.2",
"@mapbox/mapbox-gl-supported": "^3.0.0",
"@mapbox/point-geometry": "^0.1.0",
"@mapbox/tiny-sdf": "^2.0.6",
"@mapbox/unitbezier": "^0.0.1",
"@mapbox/vector-tile": "^1.3.1",
"@mapbox/whoots-js": "^3.1.0",
"@types/geojson": "^7946.0.14",
"@types/geojson-vt": "^3.2.5",
"@types/mapbox__point-geometry": "^0.1.4",
"@types/mapbox__vector-tile": "^1.3.4",
"@types/pbf": "^3.0.5",
"@types/supercluster": "^7.1.3",
"cheap-ruler": "^4.0.0",
"csscolorparser": "~1.0.3",
"earcut": "^3.0.0",
"geojson-vt": "^4.0.2",
"gl-matrix": "^3.4.3",
"grid-index": "^1.1.0",
"kdbush": "^4.0.2",
"murmurhash-js": "^1.0.0",
"pbf": "^3.2.1",
"potpack": "^2.0.0",
"quickselect": "^3.0.0",
"serialize-to-js": "^3.1.2",
"supercluster": "^8.0.1",
"tinyqueue": "^3.0.0",
"vt-pbf": "^3.1.3"
},
"devDependencies": {
"@mapbox/mvt-fixtures": "^3.10.0",
"@octokit/rest": "^21.0.2",
"@rollup/plugin-commonjs": "^28.0.1",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.3.0",
"@rollup/plugin-replace": "^6.0.1",
"@rollup/plugin-strip": "^3.0.4",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-virtual": "^3.0.2",
"@tweakpane/core": "^2.0.4",
"@types/jest": "^29.5.13",
"@types/node": "^22.7.7",
"@types/offscreencanvas": "^2019.7.3",
"@typescript-eslint/eslint-plugin": "^8.11.0",
"@typescript-eslint/parser": "^8.11.0",
"@vitest/browser": "^2.1.3",
"@vitest/ui": "^2.0.3",
"address": "^2.0.3",
"browserify": "^17.0.1",
"chalk": "^5.0.1",
"chokidar": "^4.0.1",
"cross-env": "^7.0.3",
"cssnano": "^7.0.6",
"d3-queue": "^3.0.7",
"diff": "^7.0.0",
"dts-bundle-generator": "^9.5.1",
"ejs": "^3.1.10",
"envify": "^4.1.0",
"esbuild": "^0.24.0",
"eslint": "^8.57.1",
"eslint-config-mourner": "^3.0.0",
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-html": "^8.1.2",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jsdoc": "^50.4.3",
"glob": "^11.0.0",
"is-builtin-module": "^4.0.0",
"jest-extended": "^4.0.2",
"json-stringify-pretty-compact": "^4.0.0",
"lodash": "^4.17.21",
"mapbox-gl-styles": "^2.0.2",
"minimist": "^1.2.6",
"mock-geolocation": "^1.0.11",
"msw": "^2.3.1",
"node-notifier": "^10.0.1",
"npm-font-open-sans": "^1.1.0",
"npm-run-all": "^4.1.5",
"pixelmatch": "^6.0.0",
"playwright": "^1.48.1",
"postcss": "^8.4.47",
"postcss-cli": "^11.0.0",
"postcss-inline-svg": "^6.0.0",
"pretty-bytes": "^6.0.0",
"qrcode-terminal": "^0.12.0",
"rollup": "^4.18.0",
"rollup-plugin-esbuild": "^6.1.1",
"rollup-plugin-unassert": "^0.6.0",
"serve-static": "^1.16.2",
"shuffle-seed": "^1.1.6",
"st": "^3.0.0",
"stylelint": "^16.10.0",
"stylelint-config-standard": "^36.0.1",
"tape": "^5.9.0",
"tape-filter": "^1.0.4",
"testem": "^3.15.2",
"tsx": "^4.19.1",
"tweakpane": "^4.0.4",
"typescript": "^5.6.3",
"typescript-eslint": "^8.11.0",
"utility-types": "^3.11.0",
"vite-plugin-arraybuffer": "^0.0.8",
"vitest": "^2.0.3"
},
"scripts": {
"build-dev": "rollup -c --environment BUILD:dev",
"watch-dev": "rollup -c --environment BUILD:dev --watch",
"build-bench": "rollup -c --environment BUILD:bench,MINIFY:true",
"build-prod": "rollup -c --environment BUILD:production",
"build-prod-min": "rollup -c --environment BUILD:production,MINIFY:true",
"build-csp": "rollup -c rollup.config.csp.js",
"build-test-suite": "rollup -c test/integration/rollup.config.test.js",
"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": "dts-bundle-generator --no-banner --export-referenced-types=false --umd-module-name=mapboxgl -o ./dist/mapbox-gl.d.ts ./src/index.ts",
"watch-css": "postcss --watch -o dist/mapbox-gl.css src/css/mapbox-gl.css",
"build-token": "node build/generate-access-token-script.js",
"start-server": "st --no-cache -H 0.0.0.0 --port 9966 --index index.html .",
"start-range-server": "node build/range-request-server.js",
"start": "run-p build-token watch-css watch-dev start-server",
"start-debug": "run-p build-token watch-css watch-dev start-server",
"prepare-release-pages": "while read l; do cp debug/$l test/release/$l; done < test/release/local_release_page_list.txt",
"start-release": "run-s build-token build-prod-min build-css print-release-url prepare-release-pages start-server",
"lint": "eslint --cache --ignore-path .gitignore src 3d-style",
"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 --outfile=src/data/usvg/usvg_pb_renderer.js --bundle --format=esm --watch --serve=9966 --servedir=.",
"test-build": "tsx ./node_modules/.bin/tape test/build/**/*.test.js",
"watch-render": "cross-env SUITE_NAME=render testem -f test/integration/testem/testem.js",
"watch-query": "SUITE_NAME=query testem -f test/integration/testem/testem.js",
"test-csp": "npm run build-token && vitest --config vitest.config.csp.ts --run",
"test-render": "cross-env SUITE_NAME=render testem ci -f test/integration/testem/testem.js",
"test-render-firefox": "cross-env BROWSER=Firefox SUITE_NAME=render testem ci -f test/integration/testem/testem.js",
"test-render-safari": "cross-env BROWSER=Safari SUITE_NAME=render testem ci -f test/integration/testem/testem.js",
"test-render-prod": "BUILD=production SUITE_NAME=render testem ci -f test/integration/testem/testem.js",
"test-render-csp": "BUILD=csp SUITE_NAME=render testem ci -f test/integration/testem/testem.js",
"test-query": "SUITE_NAME=query testem ci -f test/integration/testem/testem.js",
"test-expressions": "tsx ./test/expression.test.ts",
"test-typings": "run-s build-typed-style-spec tsc",
"test-style-spec": "npm test --workspace src/style-spec",
"prepublishOnly": "run-s build-dev build-prod-min build-prod build-csp build-css build-style-spec build-dts",
"print-release-url": "node build/print-release-url.js",
"check-bundle-size": "node build/check-bundle-size.js",
"check-ts-suppressions": "node build/check-ts-suppressions.js",
"codegen": "tsx ./build/generate-style-code.ts && tsx ./build/generate-struct-arrays.ts",
"build-typed-style-spec": "tsx ./build/generate-typed-style-spec.ts",
"tsc": "tsc --project tsconfig.json"
},
"files": [
"dist/mapbox-gl*",
"dist/style-spec/",
"dist/package.json",
"LICENSE.txt"
]
}