mirror of
https://github.com/excalidraw/excalidraw.git
synced 2026-12-03 10:00:31 +03:00
* 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>
67 lines
1.4 KiB
Plaintext
67 lines
1.4 KiB
Plaintext
# Development
|
|
|
|
This page relates to developing the `@excalidraw/mermaid-to-excalidraw` package itself.
|
|
|
|
## Setting up in Local
|
|
|
|
To set up the library in local, follow the below steps 👇🏼
|
|
|
|
### Clone the Repository
|
|
|
|
Go to [@excalidraw/mermaid-to-excalidraw](https://github.com/excalidraw/mermaid-to-excalidraw) and clone the repository to your local.
|
|
|
|
|
|
```bash
|
|
git clone git@github.com:excalidraw/mermaid-to-excalidraw.git
|
|
```
|
|
|
|
### Install the dependencies
|
|
|
|
Using `npm`
|
|
|
|
```bash
|
|
npm install @excalidraw/mermaid-to-excalidraw
|
|
```
|
|
|
|
Using `yarn`
|
|
|
|
```bash
|
|
yarn add @excalidraw/mermaid-to-excalidraw
|
|
```
|
|
|
|
Using `pnpm`
|
|
|
|
```bash
|
|
pnpm add @excalidraw/mermaid-to-excalidraw
|
|
```
|
|
|
|
### Run the playground server
|
|
|
|
```bash
|
|
yarn start
|
|
```
|
|
|
|
This will start the playground server in port `1234` and you start playing with the playground.
|
|
|
|
## Creating a test release
|
|
|
|
We will soon simplify creating release via commenting on GitHub PR similar till then you can create a release by following the below steps
|
|
|
|
1. Create the build
|
|
|
|
```bash
|
|
yarn build
|
|
```
|
|
|
|
This will create the dist folder which we need to publish next.
|
|
|
|
2. Publish the library
|
|
|
|
Update the package name and version in [package.json](https://github.com/excalidraw/mermaid-to-excalidraw/blob/master/package.json) and run the below command to publish it
|
|
|
|
```bash
|
|
yarn publish
|
|
```
|
|
|
|
And thats all your test release is successfully created 🎉
|