@openhistoricalmap/map-styles 0.9.7 → 0.9.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -5
- package/dist/historical/historical.json +729 -168
- package/dist/japanese_scroll/japanese_scroll.json +21 -6
- package/dist/ohm.styles.js +940 -185
- package/dist/railway/railway.json +209 -31
- package/dist/woodblock/woodblock.json +8 -7
- package/historical/historical.json +417 -118
- package/japanese_scroll/japanese_scroll.json +15 -13
- package/package.json +2 -2
- package/railway/railway.json +93 -41
- package/woodblock/woodblock.json +8 -7
package/README.md
CHANGED
|
@@ -48,7 +48,7 @@ We use the hosted version of the [Maputnik visual editor](https://maputnik.githu
|
|
|
48
48
|
3. run `npm run start` in the root directory; this will start the lightweight Node `http-server` and open a new tab or window in your browser. Everything except for the OHM vector tile sources (style files, glyphs, sprites) will be running locally on port 8888.
|
|
49
49
|
4. open the style file you wish to work on in Maputnik.; it will be `historical/historical.json` or an equivalent path for a different style.
|
|
50
50
|
5. if you're submitting changes to OpenHistoricalMap please begin by creating an issue that describes them at our [issues repository](https://github.com/OpenHistoricalMap/issues/), which is different from [where you'd submit your pull request](https://github.com/OpenHistoricalMap/map-styles).
|
|
51
|
-
6. when you're satisfied with your local changes, repopulate the `dist` directory by running `npm run build`; the build step replaces references to `localhost` with the production values of the OpenHistoricalMap servers for `glyph` and `sprite` serving; you
|
|
51
|
+
6. when you're satisfied with your local changes, repopulate the `dist` directory by running `npm run build`; the build step replaces references to `localhost` with the production values of the OpenHistoricalMap servers for `glyph` and `sprite` serving; this is required prior to deploying to OHM's staging and production servers. If you're hosting your own fonts or icons you'll need to edit these for your custom use.
|
|
52
52
|
7. use `control-c` to end the browser session you started with `npm run start`.
|
|
53
53
|
|
|
54
54
|
|
|
@@ -70,10 +70,38 @@ Miscellaneous notes:
|
|
|
70
70
|
|
|
71
71
|
## Versioning and publishing to npm
|
|
72
72
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
73
|
+
1. increment the version in `package.json`, e.g., `0.9.7`
|
|
74
|
+
1. commit your style changes, including `/dist/*` & `package.json`, push to GitHub, and [create a corresponding release](https://github.com/OpenHistoricalMap/map-styles/releases/new), e.g., `v0.9.7`
|
|
75
|
+
1. publish to npm using `npm publish`
|
|
76
|
+
1. rebuild the OHM properties that depend on `map-styles`, making sure the latest version of the module has been pulled.
|
|
77
|
+
|
|
78
|
+
### ohm-website
|
|
79
|
+
|
|
80
|
+
1. ensure your local `staging` branch of `ohm-website` is current using `git pull`
|
|
81
|
+
1. create a release branch from `staging`, e.g., `git checkout -b map-styles-0.9.7`
|
|
82
|
+
1. log in to the Docker container and start a bash shell
|
|
83
|
+
1. run `yarn upgrade` and verify, using the output, that the correct version has been installed. Note that the `map-styles` version is specified with the `^` operator so that our `package.json` will need to be updated for a **major version release**, e.g., to `1.x` from `0.9.x`
|
|
84
|
+
```
|
|
85
|
+
Rebuilding all packages...
|
|
86
|
+
success Saved lockfile.
|
|
87
|
+
success Saved 159 new dependencies.
|
|
88
|
+
info Direct dependencies
|
|
89
|
+
├─ @mapbox/mapbox-gl-rtl-text@0.2.3
|
|
90
|
+
├─ @maplibre/maplibre-gl-leaflet@0.0.20
|
|
91
|
+
├─ @openhistoricalmap/map-styles@0.9.7
|
|
92
|
+
…
|
|
93
|
+
```
|
|
94
|
+
1. from your IDE/host computer, commit `yarn.lock` and push your branch to GitHub
|
|
95
|
+
1. open a pull request against `OpenHistoricalMap/ohm-website`'s `staging` branch
|
|
96
|
+
1. confirm that the only changed file is `yarn.lock` & merge to staging
|
|
97
|
+
1. pull the updated `staging` branch to get the merge commit
|
|
98
|
+
1. ensure your local `staging` branch of `ohm-deploy` is current using `git pull`
|
|
99
|
+
1. create a release branch from `staging`, e.g., `git checkout -b map-styles-0.9.7`
|
|
100
|
+
1. in `images/web/Dockerfile` update `OPENHISTORICALMAP_WEBSITE_GITSHA` & the reason string in the subsequent `RUN echo`
|
|
101
|
+
1. commit the `Dockerfile` and push your branch to GitHub
|
|
102
|
+
1. open a pull request against `OpenHistoricalMap/ohm-deploy`'s `staging` branch
|
|
103
|
+
1. confirm your changed files & merge to staging
|
|
104
|
+
1. monitor the build output
|
|
77
105
|
|
|
78
106
|
|
|
79
107
|
## Review styles while they are in staging
|