- node.js >= 0.12
npm install & npm start & open http://localhost:9966/example/
You'll need a Mapbox access token stored in localstorage. Set it via
localStorage.setItem('MapboxAccessToken', '<TOKEN HERE>');
Tests require an MapboxAccessToken env variable to be set.
export MapboxAccessToken="YOUR ACCESS TOKEN"
Lastly, run the test command from the console:
npm test
npm test
- Update
[CHANGELOG.md](https://github.com/mapbox/mapbox-gl-directions/blob/master/CHANGELOG.md)
git commit -am "Update changelog"
npm version {major|minor|patch}
git push --follow-tags
npm publish
- update version number on GL JS example page