docs: updates to admin customization docs (#7493)

* updated admin docs

* re-add navigation and parameters sections

* update injection zones

* update cli scripts docs

* added list of injection zones

* add details about widget props

* restructure admin injection zones
This commit is contained in:
Shahed Nasser
2024-05-29 13:50:19 +03:00
committed by GitHub
parent 72b57e2ae4
commit 130de74d6d
15 changed files with 1753 additions and 3023 deletions

View File

@@ -43,15 +43,12 @@ The function receives as a parameter an object having a `container` property, wh
## How to Run Custom CLI Script?
To run the custom CLI script, `build` your code then run the `exec` command:
To run the custom CLI script, run the Medusa CLI's `exec` command:
```bash npm2yarn
npm run build
npx medusa exec ./dist/scripts/my-script.js
npx medusa exec ./src/scripts/my-script.ts
```
Notice that you pass the path to the file in the `dist` directory.
---
## Custom CLI Script Arguments
@@ -73,6 +70,5 @@ export default async function myScript ({
Then, pass the arguments in the `exec` command after the file path:
```bash npm2yarn
npm run build
npx medusa exec ./dist/scripts/my-script.js arg1 arg2
```
npx medusa exec ./src/scripts/my-script.ts arg1 arg2
```