Start Leaflet easily.
- Leaflet v1.9.4
- TypeScript v5.9.3
- Vite v7.3.1
- node v24.4.1
- pnpm v11.9.0
Install package (pnpm is pinned via the packageManager field — run corepack enable once if you don't have pnpm)
pnpm installbuild
pnpm run builddev
pnpm run devtest (build first — Playwright runs against vite preview of dist/)
pnpm run build
pnpm testThe visual test compares against a local baseline that is intentionally not committed; create it once with pnpm exec playwright test --update-snapshots. First time only: pnpm exec playwright install chromium.
dist/— local build output (gitignored)img/— images used by this README- CI (
.github/workflows/ci.yml) builds and runs the Playwright smoke test on every PR and push to main - GitHub Pages (
.github/workflows/pages.yml) rebuilds the demo from source and redeploys it on every push to main — no build output is committed - A daily workflow (
.github/workflows/deps-autoupdate.yml) bumps leaflet/typescript/vite behind build + e2e gates and opens a PR; merging it tags and publishes a GitHub Release automatically. The package version follows the bundled Leaflet version (hence1.9.4).
MIT
Copyright (c) 2018-2026 Yasunori Kirimoto
Leafletを手軽に始める
- Leaflet v1.9.4
- TypeScript v5.9.3
- Vite v7.3.1
- node v24.4.1
- pnpm v11.9.0
パッケージインストール(pnpm のバージョンは packageManager フィールドで固定されています。pnpm が未導入なら corepack enable を一度実行してください)
pnpm installビルド
pnpm run build開発
pnpm run devテスト(先にビルドが必要 — Playwright は dist/ を配信する vite preview に対して実行されます)
pnpm run build
pnpm testビジュアルテストは、意図的にコミットしていないローカルのベースライン画像と比較します。初回は pnpm exec playwright test --update-snapshots で作成してください。初回のみ pnpm exec playwright install chromium も必要です。
dist/— ローカルビルド出力(gitignore 対象)img/— この README 用の画像- CI(
.github/workflows/ci.yml)が PR と main への push ごとにビルドと Playwright スモークテストを実行 - GitHub Pages(
.github/workflows/pages.yml)が main への push ごとにソースからデモを再ビルドして再デプロイ — ビルド成果物はコミットしません - 日次ワークフロー(
.github/workflows/deps-autoupdate.yml)が leaflet/typescript/vite をビルド + e2e のゲート付きで更新し PR を作成。マージすると自動でタグ付けと GitHub Release が行われます。パッケージのバージョンは同梱の Leaflet バージョンに追従します(そのため1.9.4)。
MIT
Copyright (c) 2018-2026 Yasunori Kirimoto


