mirror of
https://github.com/excalidraw/excalidraw.git
synced 2026-12-02 17:52:27 +03:00
69 files changed
+25241
-19542
No files matched your search
@@ -13,13 +13,13 @@ To start the example app using the `@excalidraw/excalidraw` package, follow the
|
||||
1. Install the dependencies
|
||||
|
||||
```bash
|
||||
yarn
|
||||
pnpm install
|
||||
```
|
||||
|
||||
2. Start the example app
|
||||
|
||||
```bash
|
||||
yarn start:example
|
||||
pnpm start:example
|
||||
```
|
||||
|
||||
[http://localhost:3001](http://localhost:3001) will open in your default browser.
|
||||
@@ -33,7 +33,7 @@ To start the example app using the `@excalidraw/excalidraw` package, follow the
|
||||
To release the next stable version follow the below steps:
|
||||
|
||||
```bash
|
||||
yarn release --tag=latest --version=0.19.0
|
||||
pnpm release --tag=latest --version=0.19.0
|
||||
```
|
||||
|
||||
You will need to pass the `latest` tag with `version` for which you want to create the release. This will make the changes needed before publishing the packages into NPM, like updating dependencies of all `@excalidraw/*` packages, generating new entries in `CHANGELOG.md` and more.
|
||||
@@ -2,12 +2,14 @@
|
||||
|
||||
**Excalidraw** is exported as a component to be directly embedded in your project.
|
||||
|
||||
Use `npm` or `yarn` to install the package.
|
||||
Use `npm`, `yarn` or `pnpm` to install the package.
|
||||
|
||||
```bash
|
||||
npm install react react-dom @excalidraw/excalidraw
|
||||
# or
|
||||
yarn add react react-dom @excalidraw/excalidraw
|
||||
# or
|
||||
pnpm add react react-dom @excalidraw/excalidraw
|
||||
```
|
||||
|
||||
:::tip
|
||||
|
||||
@@ -29,6 +29,12 @@ Using `yarn`
|
||||
yarn add @excalidraw/mermaid-to-excalidraw
|
||||
```
|
||||
|
||||
Using `pnpm`
|
||||
|
||||
```bash
|
||||
pnpm add @excalidraw/mermaid-to-excalidraw
|
||||
```
|
||||
|
||||
### Run the playground server
|
||||
|
||||
```bash
|
||||
|
||||
@@ -14,6 +14,12 @@ Using `yarn`
|
||||
yarn add @excalidraw/mermaid-to-excalidraw
|
||||
```
|
||||
|
||||
Using `pnpm`
|
||||
|
||||
```bash
|
||||
pnpm add @excalidraw/mermaid-to-excalidraw
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
Once the library is installed, its ready to use.
|
||||
|
||||
@@ -10,7 +10,7 @@ In case you want to pick up something from the roadmap, comment on that issue an
|
||||
## Setup
|
||||
|
||||
1. Fork and clone the repo
|
||||
1. Run `yarn` to install dependencies
|
||||
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:
|
||||
|
||||
@@ -7,7 +7,7 @@ These instructions will get you a copy of the project up and running on your loc
|
||||
### Requirements
|
||||
|
||||
- [Node.js](https://nodejs.org/en/)
|
||||
- [Yarn](https://yarnpkg.com/getting-started/install) (v1 or v2.4.2+)
|
||||
- [pnpm](https://pnpm.io/installation): run `corepack enable` (Corepack ships with Node.js) to use the version pinned in `package.json`
|
||||
- [Git](https://git-scm.com/downloads)
|
||||
|
||||
### Clone the repo
|
||||
@@ -19,13 +19,13 @@ git clone https://github.com/excalidraw/excalidraw.git
|
||||
### Install the dependencies
|
||||
|
||||
```bash
|
||||
yarn
|
||||
pnpm install
|
||||
```
|
||||
|
||||
### Start the server
|
||||
|
||||
```bash
|
||||
yarn start
|
||||
pnpm start
|
||||
```
|
||||
|
||||
Now you can open [http://localhost:3000](http://localhost:3000) and start coding in your favorite code editor.
|
||||
@@ -39,37 +39,37 @@ For collaboration, you will need to set up [collab server](https://github.com/ex
|
||||
### Install the dependencies
|
||||
|
||||
```bash
|
||||
yarn
|
||||
pnpm install
|
||||
```
|
||||
|
||||
### Run the project
|
||||
|
||||
```bash
|
||||
yarn start
|
||||
pnpm start
|
||||
```
|
||||
|
||||
### Reformat all files with Prettier
|
||||
|
||||
```bash
|
||||
yarn fix
|
||||
pnpm fix
|
||||
```
|
||||
|
||||
### Run tests
|
||||
|
||||
```bash
|
||||
yarn test
|
||||
pnpm test
|
||||
```
|
||||
|
||||
### Update test snapshots
|
||||
|
||||
```bash
|
||||
yarn test:update
|
||||
pnpm test:update
|
||||
```
|
||||
|
||||
### Test for formatting with Prettier
|
||||
|
||||
```bash
|
||||
yarn test:code
|
||||
pnpm test:code
|
||||
```
|
||||
|
||||
### Docker Compose
|
||||
|
||||
Reference in new issue
Block a user