|
1 | | -### Dependencies |
2 | | - |
3 | | -- [node.js](https://nodejs.org/en/) >= 0.12 |
4 | | - |
5 | 1 | ### Developing |
6 | 2 |
|
7 | 3 | npm install & npm start & open http://localhost:9966/example/ |
8 | 4 |
|
9 | 5 | You'll need a [Mapbox access token](https://www.mapbox.com/help/create-api-access-token/) stored in localstorage. Set it via |
10 | 6 |
|
11 | | - localStorage.setItem('MapboxAccessToken', '<TOKEN HERE>'); |
| 7 | + localStorage.setItem('MapboxAccessToken', '<YOUR ACCESS TOKEN>'); |
12 | 8 |
|
13 | 9 | ### Testing |
14 | 10 |
|
15 | 11 | Tests require an MapboxAccessToken env variable to be set. |
16 | 12 |
|
17 | | - export MapboxAccessToken="YOUR ACCESS TOKEN" |
18 | | - |
19 | | -Lastly, run the test command from the console: |
20 | | - |
21 | | - npm test |
| 13 | + export MapboxAccessToken=<YOUR ACCESS TOKEN> && npm test |
22 | 14 |
|
23 | | -### Deploying |
| 15 | +### Release process |
24 | 16 |
|
25 | | -- `npm test` |
26 | | -- Update `[CHANGELOG.md](https://github.com/mapbox/mapbox-gl-directions/blob/master/CHANGELOG.md)` |
27 | | -- `git commit -am "Update changelog"` |
28 | | -- `npm version {major|minor|patch}` |
29 | | -- `git push --follow-tags` |
30 | | -- `npm publish` |
31 | | -- update version number on [GL JS example page](https://github.com/mapbox/mapbox-gl-js/blob/mb-pages/docs/_posts/examples/3400-01-11-mapbox-gl-directions.html) |
| 17 | +1. `git checkout master` |
| 18 | +1. `git pull --rebase --autostash` to ensure you have the latest changes. |
| 19 | +1. `export MapboxAccessToken=<YOUR ACCESS TOKEN> && npm test` |
| 20 | +1. Update [`CHANGELOG.md`](https://github.com/mapbox/mapbox-gl-directions/blob/master/CHANGELOG.md) |
| 21 | +1. `npm version {major|minor|patch}` |
| 22 | +1. Create a release branch off of master that updates `CHANGELOG.md` and increments `package.json`. |
| 23 | +1. `git push --follow-tags` |
| 24 | +1. `mbx npm publish` |
| 25 | +1. Update version number on [GL JS example page](https://github.com/mapbox/mapbox-gl-js/blob/mb-pages/docs/_posts/examples/3400-01-11-mapbox-gl-directions.html) |
0 commit comments