Skip to content

dayjournal/leaflet-starter

Repository files navigation

leaflet-starter

README02

Start Leaflet easily.


Usage

README03


Install package (pnpm is pinned via the packageManager field — run corepack enable once if you don't have pnpm)

pnpm install

build

pnpm run build

dev

pnpm run dev

test (build first — Playwright runs against vite preview of dist/)

pnpm run build
pnpm test

The 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.




README01


Repository layout & automation

  • 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 (hence 1.9.4).

License

MIT

Copyright (c) 2018-2026 Yasunori Kirimoto




Japanese


Leaflet スターター

README02

Leafletを手軽に始める


使用方法

README03


パッケージインストール(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 も必要です。



README01


リポジトリ構成と自動化

  • 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


About

Start Leaflet easily. [Leaflet, Vite]

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors