mapbox-gl

v3.7.0
A WebGL interactive maps library

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-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

vitest --config vitest.config.csp.js --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
npm i mapbox-gl

Metadata

Downloads