From e94f008fb003c99335bda05e77c5fd9b8e845e14 Mon Sep 17 00:00:00 2001 From: Stepan Kuzmin Date: Thu, 8 Dec 2022 14:09:39 +0200 Subject: [PATCH 1/2] Update CONTRIBUTING.md --- CONTRIBUTING.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 57b5d16..e4bb02c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,6 +1,6 @@ ### Developing - yarn install & yarn start & open http://localhost:9966/example/ + npm run install & npm run start & open http://localhost:9966/ You'll need a [Mapbox access token](https://www.mapbox.com/help/create-api-access-token/) stored in localstorage. Set it via @@ -10,7 +10,7 @@ You'll need a [Mapbox access token](https://www.mapbox.com/help/create-api-acces Tests require an MapboxAccessToken env variable to be set. - export MapboxAccessToken= && yarn test + export MapboxAccessToken= && npm test ### Release process From 533fe782600ab8cdde4093157d1ff751ce777626 Mon Sep 17 00:00:00 2001 From: Stepan Kuzmin Date: Thu, 8 Dec 2022 16:28:56 +0200 Subject: [PATCH 2/2] Update CONTRIBUTING.md --- CONTRIBUTING.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e4bb02c..2b7fb5d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,6 +1,6 @@ ### Developing - npm run install & npm run start & open http://localhost:9966/ + npm install && npm start && open http://localhost:9966/ You'll need a [Mapbox access token](https://www.mapbox.com/help/create-api-access-token/) stored in localstorage. Set it via @@ -10,16 +10,16 @@ You'll need a [Mapbox access token](https://www.mapbox.com/help/create-api-acces Tests require an MapboxAccessToken env variable to be set. - export MapboxAccessToken= && npm test + MapboxAccessToken= npm test ### Release process 1. `git checkout master` 1. `git pull --rebase --autostash` to ensure you have the latest changes. -1. `export MapboxAccessToken= && npm test` +1. `MapboxAccessToken= npm test` 1. Update [`CHANGELOG.md`](https://github.com/mapbox/mapbox-gl-directions/blob/master/CHANGELOG.md) 1. `npm version {major|minor|patch}` 1. Create a release branch off of master that updates `CHANGELOG.md` and increments `package.json`. 1. `git push --follow-tags` 1. `mbx npm publish` -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) +1. Update version number on [GL JS example page](https://docs.mapbox.com/mapbox-gl-js/example/mapbox-gl-directions/)