summaryrefslogtreecommitdiffstats
path: root/dev-docs/docs/@excalidraw/excalidraw/development.mdx
blob: 60700758ffe6ca81389eb2d4463c66440fc1a02f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
---
pagination_prev: "@excalidraw/excalidraw/installation"
---

# Development

This page relates to developing the `@excalidraw/excalidraw` package itself.

## Example app

To start the example app using the `@excalidraw/excalidraw` package, follow the below steps:

1. Install the dependencies

   ```bash
   yarn
   ```

2. Start the example app

   ```bash
   yarn start:example
   ```

   [http://localhost:3001](http://localhost:3001) will open in your default browser.
   
   This is the same example as the [CodeSandbox](https://codesandbox.io/p/sandbox/github/excalidraw/excalidraw/tree/master/examples/with-script-in-browser) example.

## Releasing

### Create a test release

You can create a test release by posting the below comment in your pull request:

```bash
@excalibot trigger release
```

Once the version is released `@excalibot` will post a comment with the release version.

### Creating a production release

To release the next stable version follow the below steps:

```bash
yarn prerelease:excalidraw
```

You need to pass the `version` for which you want to create the release. This will make the changes needed before making the release like updating `package.json`, `changelog` and more.

The next step is to run the `release` script:

```bash
yarn release:excalidraw
```

This will publish the package.

Right now there are two steps to create a production release but once this works fine these scripts will be combined and more automation will be done.