Update README instructions for local development
This commit is contained in:
parent
60d824e351
commit
f12d89c5f7
1 changed files with 20 additions and 0 deletions
20
README.md
20
README.md
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue