This document contains a set of guidelines to help developers during the contribution process.
git clone [email protected]:watergis/maplibre-gl-export.git
cd maplibre-gl-export
pnpm i
When you download the repository first time, please also install lefthook
by the following command.
pnpm lefthook install
- maplibre-gl-export
cd packages/maplibre-gl-export
pnpm dev
- mapbox-gl-export
cd packages/mapbox-gl-export
pnpm dev
Note. Most of common features are imported from maplibre-gl-export
plugin
- Demo documentation
# build maplibre-gl-export and mapbox-gl-export at the root folder of the repository
pnpm build
cd sites/demo
pnpm dev
Both packages and documentation are built by the below command.
pnpm build
It uses changeset to release. Please create release notes by the following command. Changeset will release package once the PR is merged into main branch.
pnpm changeset
-
Fork the repo and create a branch for your new feature or bug fix.
-
Install NPM packages by
pnpm install && pnpm lefthook install
. -
Run the plugins to check all of plugin's features work well. Run:
pnpm dev
-
Make sure you submit a change specific to exactly one issue. If you have ideas for multiple changes please create separate pull requests.
-
Make prettier pass. Run:
pnpm format
-
Make eslint pass. Run:
pnpm lint
-
Add a changeset file by following this
-
Commit local changes in git. Run: `git add . && git commit -m "precise commit message"
-
Push local branch to your forked remote repository.
-
Push to your fork and submit a pull request. A button should appear on your fork its github page afterwards.