Files
excalidraw/dev-docs/docs/introduction/contributing.mdx
T
Márk Tolmácsanddwelle 30a4c631a5 chore(repo): Move to pnpm (#12655)
* fix: Undeclared dependencies

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

* chore: Rationalize package versions

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

* chore: Remove old react app remnants

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

* feat: Conversion to pnpm

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

* fix: Circular deps #0

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

* fix: common package circular dependencies

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

* chore: Move history and undo/redo to excalidraw/excalidraw

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

* feat: AppState broken up across package boundaries

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

* fix: renderElement and binding type racionalization

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

* fix: Refactor linearElementEditor to not use types outside the package

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

* chore: Do not import self barrel file

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

* fix: All circular dependencies except core

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

* feat: Bump pnpm to 11

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

* fix: SASS deprecation warnings

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

* fix: Polynomial regular expression used on uncontrolled data

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

* fix: Vercel deploy

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

* feat: excalidraw/history package

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

* fix: Polynomial regex in SVG payload decoding

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

* fix: emit the internal packages' types from the editor again

The editor advertises ./common/*, ./element/*, ./history/*, ./math/* and
./utils/* type subpaths, but without the path aliases tsc treats those
packages as external libraries and no longer emits them. Include their
sources in the editor's type build, and drop the relative cross-package
import that made element/ come out half-emitted.

* feat: export the history classes of the editor's API from the entry

onIncrement hands out StoreIncrement subclasses and applyDeltas takes
StoreDelta, so export them next to CaptureUpdateAction. Hosts then need no
dependency of their own on @excalidraw/history.

* chore: refuse to publish packages with npm or yarn

Only pnpm publish rewrites workspace:* dependencies and applies
publishConfig.exports, so a package published with another client can't be
installed.

---------

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
2026-12-01 22:17:47 +01:00

62 lines
3.2 KiB
Plaintext

# Contributing
Pull requests are welcome. For major changes, please [open an issue](https://github.com/excalidraw/excalidraw/issues/new) first to discuss what you would like to change.
We have a [roadmap](https://github.com/orgs/excalidraw/projects/3) which we strongly recommend to go through and check if something interests you.
For new contributors we would recommend to start with *Easy* tasks.
In case you want to pick up something from the roadmap, comment on that issue and one of the project maintainers will assign it to you, post which you can discuss in the issue and start working on it.
## Setup
1. Fork and clone the repo
1. Run `pnpm install` to install dependencies
1. Create a branch for your PR with `git checkout -b your-branch-name`
> To keep `master` branch pointing to remote repository and make pull requests from branches on your fork, run:
>
> ```bash
> git remote add upstream https://github.com/excalidraw/excalidraw.git
> git fetch upstream
> git branch --set-upstream-to=upstream/master master
> ```
## Pull Request Guidelines
Don't worry if you get any of the below wrong, or if you don't know how. We'll gladly help out.
### Title
Make sure the title starts with a semantic prefix:
- **feat**: A new feature
- **fix**: A bug fix
- **docs**: Documentation only changes
- **style**: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
- **refactor**: A code change that neither fixes a bug nor adds a feature
- **perf**: A code change that improves performance
- **test**: Adding missing tests or correcting existing tests
- **build**: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
- **ci**: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
- **chore**: Other changes that don't modify src or test files
- **revert**: Reverts a previous commit
### Testing
Once you submit your pull request it will automatically be tested. Be sure to check the results of the test and fix any issues that arise.
It's also a good idea to consider if your change should include additional tests. This is highly recommended for new features or bug-fixes. For example, it's good practice to create a test for each bug you fix which ensures that we don't regress the code in the future.
Finally - always manually test your changes using the convenient staging environment deployed for each pull request. As much as local development attempts to replicate production, there can still be subtle differences in behavior. For larger features consider testing your change in multiple browsers as well.
:::note
Some checks, such as the `lint` and `test`, require approval from the maintainers to run.
They will appear as `Expected — Waiting for status to be reported` in the PR checks when they are waiting for approval.
:::
## Translating
To translate Excalidraw into other languages, please visit [our Crowdin page](https://crowdin.com/project/excalidraw). To add a new language, [open an issue](https://github.com/excalidraw/excalidraw/issues/new) so we can get things set up on our end first.
Translations will be available on the app if they exceed a certain threshold of completion (currently **85%**).