Automate the process of excalidraw libraries
-
Install dependencies:
yarn setup
-
Start Firebase emulator:
yarn dev
-
open http://localhost:6001/excalidraw-room-persistence/us-central1/libraries/ and start coding in your favourite editpr
In order to not spam the public library repository when developing new publishing features, you are encouraged to publish to a fork:
-
Create a personal access token.
-
Create a
.env.local
file in the root of this project with the following content:GH_TOKEN=<your_github_token> GH_OWNER=<your_github_username>
-
Create a
.env.local
file in the root of your Excalidraw project:REACT_APP_LIBRARY_BACKEND=http://localhost:6001/excalidraw-room-persistence/us-central1/libraries
That's it. When publishing a library from a local dev Excalidraw instance, it'll send the request to your local excalidraw-automation server, which will then create a pull request in your library repository fork.