Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 1.51 KB

CONTRIBUTING.md

File metadata and controls

28 lines (18 loc) · 1.51 KB

Developing

npm install & npm start & open http://localhost:9966/

You'll need a Mapbox access token stored in localstorage. Set it via

localStorage.setItem('MapboxAccessToken', '<TOKEN HERE>');

Testing

Tests require an MapboxAccessToken env variable to be set.

export MapboxAccessToken="YOUR ACCESS TOKEN"

Lastly, run the test command from the console:

npm test

Deploying

  • npm run prepublish && npm run docs
  • Update the version key in package.json
  • Outline changes in CHANGELOG.md
  • Commit and push
  • git tag -a vX.X.X -m 'vX.X.X'
  • git push --tags
  • npm publish
  • Update version number in GL JS examples (one, two, three, four, five, six)