No description
|
||
---|---|---|
.github/workflows | ||
.husky | ||
src | ||
.eslintrc | ||
.gitignore | ||
.npmignore | ||
.prettierignore | ||
.prettierrc | ||
LICENSE | ||
package.json | ||
pnpm-lock.yaml | ||
README.md | ||
tsconfig.json |
SDK for Saleor Apps
SDK for building great Saleor Apps.
Installing
npm i @saleor/app-sdk
Development
How to link development version to your project
If you would like to develop the SDK and test it with existing project:
- In the Saleor App SDK directory run command
pnpm watch
Now any code change will trigger build operation automatically.
- In your project directory:
pnpm add ../saleor-app-sdk/dist
As path to your local copy of the App SDK may be different, adjust it accordingly.
Code style
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