7.3.0 • Published 11 years ago
mapbox-gl-style-lint v7.3.0
Mapbox GL Lint
GL style spec and migration scripts for mapbox-gl-js and mapbox-gl-native.
Install
npm install -g mapbox-gl-style-lintProvides the utilities:
gl-style-migrategl-style-validate
Validation
$ gl-style-validate style.jsonWill validate the given style JSON and print errors to stdout. Provide a
--json flag to get JSON output.
API
Migrations
This repo contains scripts for migrating GL styles of any version to the latest version (currently v5). Migrate a style like this:
$ gl-style-migrate bright-v0.json > bright-v5.jsonTo migrate a file in place, you can use the sponge utility from the moreutils package:
$ brew install moreutils
$ gl-style-migrate bright.json | sponge bright.jsonTests
To run tests:
npm install
npm testTo update test fixtures
UPDATE=true npm test7.3.0
11 years ago
7.2.2
11 years ago
7.2.1
11 years ago
7.2.0
11 years ago
7.1.0
11 years ago
7.0.0
11 years ago
6.1.1
11 years ago
6.1.0
11 years ago
6.0.4
11 years ago
6.0.3
11 years ago
6.0.2
11 years ago
6.0.1
11 years ago
6.0.0
11 years ago
0.3.2
11 years ago
0.3.1
11 years ago
0.3.0
11 years ago
0.2.3
11 years ago
0.2.2
11 years ago
0.2.1
11 years ago
0.2.0
11 years ago
0.1.1
11 years ago
0.1.0
11 years ago
0.0.1
11 years ago
0.0.0
11 years ago
