Update README instructions for local development

This commit is contained in:
Krzysztof Wolski 2022-07-29 16:02:28 +02:00
parent 60d824e351
commit f12d89c5f7

View file

@ -17,6 +17,26 @@ npm i @saleor/app-sdk
## Development ## Development
### How to link development version to your project
If you would like to develop the SDK and test it with existing project:
1. In the Saleor App SDK directory run command
```bash
pnpm watch
```
Now any code change will trigger build operation automatically.
2. In your project directory:
```bash
pnpm add ../saleor-app-sdk/dist
```
As path to your local copy of the App SDK may be different, adjust it accordingly.
### Code style ### Code style
Before committing the code, Git pre-hooks will check staged changes for Before committing the code, Git pre-hooks will check staged changes for