SDK for building Saleor Apps.
App SDK is in the early stage at the moment. Every API below 1.x.x release is likely to change.
Feel free to play with SDK and move its code directly to your app.
npm i @saleor/app-sdk
You can find the documentation here.
If you would like to develop the SDK and test it with existing project:
pnpm watch
Now any code change will trigger build operation automatically.
pnpm add ../saleor-app-sdk/dist
As path to your local copy of the App SDK may be different, adjust it accordingly.
Before committing the code, Git pre-hooks will check staged changes for following the code styles. If you would like to format the code by yourself, run the command:
pnpm lint