Skip to content

Commit 271b0c9

Browse files
committed
.
1 parent a6a4468 commit 271b0c9

File tree

4 files changed

+310
-21
lines changed

4 files changed

+310
-21
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,23 @@ stereonet.setStyle("data_plane", { stroke: "#00ff00", "stroke-width": "5px" });
257257

258258
---
259259

260+
261+
## Development
262+
263+
### Publish to NPM
264+
The library is built on Github actions. A relase is automatically published to NPM using [semantic-release](https://github.com/semantic-release/semantic-release). Deployments are triggered when pushing on `main` branch with a commit message containting `feat`, `fix`, or `perf` (see the [docs](https://semantic-release.gitbook.io/semantic-release/recipes/release-workflow/distribution-channels))
265+
266+
267+
### Github Pages
268+
269+
To update the example on Github pages, run the following command:
270+
271+
```bash
272+
npm run deploy:gh-pages
273+
```
274+
275+
---
276+
260277
## Acknowledgements
261278

262279
- Vite library-mode setup bootstrapped using [kbysiec/vite-vanilla-ts-lib-starter](https://github.com/kbysiec/vite-vanilla-ts-lib-starter/).

package-lock.json

Lines changed: 261 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
"scripts": {
2929
"dev": "vite --host",
3030
"build": "vite build && dts-bundle-generator --config ./dts-bundle-generator.config.ts && copyfiles ./package.json build && copyfiles ./LICENSE.md build",
31+
"build:gh-pages": "vite build --mode=example",
32+
"deploy:gh-pages": "npm run build:gh-pages && gh-pages -d dist",
3133
"semantic-release": "semantic-release",
3234
"test": "vitest",
3335
"test:coverage": "vitest --coverage",
@@ -53,6 +55,7 @@
5355
"eslint": "^9.21.0",
5456
"eslint-config-prettier": "^10.0.1",
5557
"eslint-plugin-prettier": "^5.2.3",
58+
"gh-pages": "^6.3.0",
5659
"jiti": "^2.4.2",
5760
"lint-staged": "^15.4.3",
5861
"postcss": "^8.5.3",

0 commit comments

Comments
 (0)