You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.4 KiB
Plaintext
60 lines
1.4 KiB
Plaintext
2 years ago
|
---
|
||
|
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
|
||
|
cd src/packages/excalidraw && yarn
|
||
|
```
|
||
|
|
||
|
2. Start the example app
|
||
|
|
||
|
```bash
|
||
|
yarn start
|
||
|
```
|
||
|
|
||
|
[http://localhost:3001](http://localhost:3001) will open in your default browser.
|
||
|
|
||
|
The example is same as the [codesandbox example](https://ehlz3.csb.app/)
|
||
|
|
||
|
## 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 version
|
||
|
```
|
||
|
|
||
|
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
|
||
|
```
|
||
|
|
||
|
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.
|