UNPKG

7.95 kBJSONView Raw
1{
2 "name": "maplibre-gl",
3 "description": "BSD licensed community fork of mapbox-gl, a WebGL interactive maps library",
4 "version": "2.1.9",
5 "main": "dist/maplibre-gl.js",
6 "style": "dist/maplibre-gl.css",
7 "license": "BSD-3-Clause",
8 "repository": {
9 "type": "git",
10 "url": "git://github.com/maplibre/maplibre-gl-js.git"
11 },
12 "types": "dist/maplibre-gl.d.ts",
13 "type": "module",
14 "dependencies": {
15 "@mapbox/geojson-rewind": "^0.5.1",
16 "@mapbox/jsonlint-lines-primitives": "^2.0.2",
17 "@mapbox/mapbox-gl-supported": "^2.0.1",
18 "@mapbox/point-geometry": "^0.1.0",
19 "@mapbox/tiny-sdf": "^2.0.4",
20 "@mapbox/unitbezier": "^0.0.1",
21 "@mapbox/vector-tile": "^1.3.1",
22 "@mapbox/whoots-js": "^3.1.0",
23 "@types/geojson": "^7946.0.8",
24 "@types/mapbox__point-geometry": "^0.1.2",
25 "@types/mapbox__vector-tile": "^1.3.0",
26 "@types/pbf": "^3.0.2",
27 "csscolorparser": "~1.0.3",
28 "earcut": "^2.2.3",
29 "geojson-vt": "^3.2.1",
30 "gl-matrix": "^3.4.3",
31 "murmurhash-js": "^1.0.0",
32 "pbf": "^3.2.1",
33 "potpack": "^1.0.2",
34 "quickselect": "^2.0.0",
35 "supercluster": "^7.1.4",
36 "tinyqueue": "^2.0.3",
37 "vt-pbf": "^3.1.3"
38 },
39 "devDependencies": {
40 "@mapbox/gazetteer": "^5.1.0",
41 "@mapbox/mapbox-gl-rtl-text": "^0.2.3",
42 "@mapbox/mvt-fixtures": "^3.6.0",
43 "@rollup/plugin-commonjs": "^21.0.1",
44 "@rollup/plugin-json": "^4.1.0",
45 "@rollup/plugin-node-resolve": "^13.1.3",
46 "@rollup/plugin-replace": "^4.0.0",
47 "@rollup/plugin-strip": "^2.1.0",
48 "@rollup/plugin-typescript": "^8.3.0",
49 "@swc/cli": "^0.1.55",
50 "@swc/core": "^1.2.135",
51 "@swc/jest": "^0.2.17",
52 "@types/benchmark": "^2.1.1",
53 "@types/browserify": "^12.0.37",
54 "@types/cssnano": "^5.0.0",
55 "@types/d3": "^7.1.0",
56 "@types/diff": "^5.0.2",
57 "@types/earcut": "^2.1.1",
58 "@types/eslint": "^8.4.1",
59 "@types/gl": "^4.1.0",
60 "@types/glob": "^7.2.0",
61 "@types/jest": "^27.4.0",
62 "@types/jsdom": "^16.2.14",
63 "@types/minimist": "^1.2.2",
64 "@types/murmurhash-js": "^1.0.3",
65 "@types/nise": "^1.4.0",
66 "@types/offscreencanvas": "^2019.6.4",
67 "@types/pixelmatch": "^5.2.4",
68 "@types/pngjs": "^6.0.1",
69 "@types/react": "^17.0.38",
70 "@types/react-dom": "^17.0.11",
71 "@types/request": "^2.48.8",
72 "@types/rollup-plugin-json": "^3.0.3",
73 "@types/shuffle-seed": "^1.1.0",
74 "@types/supercluster": "^7.1.0",
75 "@types/window-or-global": "^1.0.4",
76 "@typescript-eslint/eslint-plugin": "^5.14.0",
77 "@typescript-eslint/parser": "^5.14.0",
78 "address": "^1.1.2",
79 "benchmark": "^2.1.4",
80 "browserify": "^17.0.0",
81 "canvas": "^2.9.0",
82 "cssnano": "^5.0.16",
83 "d3": "^7.3.0",
84 "d3-queue": "^3.0.7",
85 "diff": "^5.0.0",
86 "documentation": "13.0.2",
87 "dts-bundle-generator": "^6.4.0",
88 "eslint": "^8.7.0",
89 "eslint-config-mourner": "^3.0.0",
90 "eslint-plugin-html": "^6.2.0",
91 "eslint-plugin-import": "^2.25.4",
92 "eslint-plugin-jest": "^26.0.0",
93 "eslint-plugin-jsdoc": "^38.1.4",
94 "eslint-plugin-react": "^7.28.0",
95 "gl": "^5.0.0",
96 "glob": "^7.2.0",
97 "is-builtin-module": "^3.1.0",
98 "jest": "^27.5.1",
99 "jest-canvas-mock": "^2.3.1",
100 "jest-playwright-preset": "^1.7.0",
101 "jsdom": "^19.0.0",
102 "json-stringify-pretty-compact": "^3.0.0",
103 "mapbox-gl-styles": "^2.0.2",
104 "minimist": "^1.2.5",
105 "mock-geolocation": "^1.0.11",
106 "nise": "^5.1.1",
107 "node-plantuml": "^0.9.0",
108 "npm-font-open-sans": "^1.1.0",
109 "npm-run-all": "^4.1.5",
110 "pdf-merger-js": "^3.3.2",
111 "pixelmatch": "^5.2.1",
112 "playwright": "^1.18.1",
113 "pngjs": "^6.0.0",
114 "postcss": "^8.4.5",
115 "postcss-cli": "^9.1.0",
116 "postcss-inline-svg": "^5.0.0",
117 "pretty-bytes": "^6.0.0",
118 "react": "^17.0.2",
119 "react-dom": "^17.0.2",
120 "request": "^2.88.0",
121 "rollup": "^2.66.1",
122 "rollup-plugin-sourcemaps": "^0.6.3",
123 "rollup-plugin-terser": "^7.0.2",
124 "rollup-plugin-unassert": "^0.3.0",
125 "rw": "^1.3.3",
126 "semver": "^7.3.5",
127 "shuffle-seed": "^1.1.6",
128 "source-map-explorer": "^2.5.2",
129 "st": "^3.0.0",
130 "stylelint": "^14.3.0",
131 "stylelint-config-standard": "^25.0.0",
132 "ts-node": "^10.5.0",
133 "typescript": "^4.6.2"
134 },
135 "scripts": {
136 "generate-shaders": "node --loader ts-node/esm --experimental-specifier-resolution=node build/generate-shaders.ts",
137 "generate-struct-arrays": "node --loader ts-node/esm --experimental-specifier-resolution=node build/generate-struct-arrays.ts",
138 "generate-style-code": "node --loader ts-node/esm --experimental-specifier-resolution=node build/generate-style-code.ts",
139 "generate-style-spec": "node --loader ts-node/esm --experimental-specifier-resolution=node build/generate-style-spec.ts",
140 "generate-typings": "node --loader ts-node/esm --experimental-specifier-resolution=node build/generate-typings.ts",
141 "generate-query-test-fixtures": "node --loader ts-node/esm --experimental-specifier-resolution=node build/generate-query-test-fixtures.ts",
142 "build-dev": "rollup --configPlugin @rollup/plugin-typescript -c --environment BUILD:dev",
143 "watch-dev": "rollup --configPlugin @rollup/plugin-typescript -c --environment BUILD:dev --watch",
144 "build-prod": "rollup --configPlugin @rollup/plugin-typescript -c --environment BUILD:production",
145 "build-csp": "rollup --configPlugin @rollup/plugin-typescript -c rollup.config.csp.ts",
146 "build-css": "postcss -o dist/maplibre-gl.css src/css/maplibre-gl.css",
147 "build-style-spec": "rollup --configPlugin @rollup/plugin-typescript -c rollup.config.style-spec.ts && rollup --configPlugin @rollup/plugin-typescript -c rollup.config.style-spec.ts --environment esm",
148 "build-diagrams": "cd docs/diagrams; ls *.plantuml | xargs -I {} puml generate --svg {} -o {}.svg",
149 "watch-css": "postcss --watch -o dist/maplibre-gl.css src/css/maplibre-gl.css",
150 "build-benchmarks": "npm run build-dev && rollup --configPlugin @rollup/plugin-typescript -c test/bench/rollup_config_benchmarks.ts",
151 "watch-benchmarks": "rollup --configPlugin @rollup/plugin-typescript -c test/bench/rollup_config_benchmarks.ts --watch",
152 "start-server": "st --no-cache -H 0.0.0.0 --port 9966 --index index.html .",
153 "start-server-at-test": "st --no-cache -H 0.0.0.0 --port 9966 --index index.html -d test",
154 "start": "run-p watch-css start-server",
155 "start-debug": "run-p watch-css watch-dev start-server",
156 "start-bench": "run-p watch-css watch-benchmarks start-server-at-test",
157 "lint": "eslint --cache --ext \".ts,.js,.html\" --ignore-path .gitignore src test build debug/*.html jest.config.js",
158 "lint-docs": "documentation lint src/index.ts",
159 "lint-css": "stylelint \"src/css/maplibre-gl.css\"",
160 "test": "run-s lint lint-css lint-docs test-unit",
161 "test-build": "jest --roots ./test/build",
162 "test-symbol-shaping": "jest --roots ./test/integration/symbol-shaping",
163 "test-style-spec": "jest --roots ./test/integration/style-spec",
164 "test-browser": "jest -c ./jest.config.e2e.js --roots ./test/integration/browser",
165 "test-render": "node --loader ts-node/esm --experimental-specifier-resolution=node --experimental-json-modules --max-old-space-size=2048 test/integration/render/render.test.ts",
166 "test-query": "jest -c ./jest.config.e2e.js --roots ./test/integration/query",
167 "test-expression": "jest --roots ./test/integration/expression",
168 "test-unit": "jest --roots ./src",
169 "codegen": "npm run generate-style-code && npm run generate-struct-arrays && npm run generate-style-spec && npm run generate-shaders",
170 "benchmark": "node --loader ts-node/esm --experimental-specifier-resolution=node test/bench/run-benchmarks.ts",
171 "gl-stats": "node --loader ts-node/esm --experimental-specifier-resolution=node test/bench/gl-stats.ts",
172 "postinstall": "node ./postinstall.js"
173 },
174 "files": [
175 "build/",
176 "dist/*",
177 "src/",
178 "postinstall.js"
179 ]
180}