Build typedoc before test:storybook & test:storybook:update (#32719)

* Build typedoc before test:storybook & test:storybook:update

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Fix doc

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2026-03-10 11:22:20 +00:00 committed by GitHub
parent 2e0adc5832
commit 78b40a6fed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 25 additions and 6 deletions

View File

@ -108,7 +108,7 @@ function MyApp() {
pnpm install
# Build the library
pnpm prepare
pnpm prepack
```
### Running Storybook

View File

@ -38,14 +38,14 @@
"i18n": "matrix-gen-i18n src && pnpm i18n:sort && pnpm i18n:lint",
"i18n:sort": "matrix-sort-i18n src/i18n/strings/en_EN.json",
"i18n:lint": "matrix-i18n-lint && prettier --log-level=silent --write src/i18n/strings/ --ignore-path /dev/null",
"test:unit": "vitest --project=unit",
"test:storybook": "pnpm build:doc && vitest --project=storybook",
"test:storybook:update": "CI=1 playwright-screenshots-experimental pnpm vitest --run --update --project=storybook",
"test:unit": "nx test:unit",
"test:storybook": "nx test:storybook",
"test:storybook:update": "nx test:storybook:update",
"build": "nx build",
"prepack": "pnpm run build",
"storybook": "storybook dev -p 6007",
"build:storybook": "nx run @element-hq/web-shared-components:storybook",
"build:doc": "nx run @element-hq/web-shared-components:typedoc",
"build:storybook": "nx storybook",
"build:doc": "nx typedoc",
"lint": "pnpm lint:types && pnpm lint:js",
"lint:js": "eslint --max-warnings 0 src",
"lint:types": "tsc --noEmit && tsc --noEmit -p tsconfig.node.json"

View File

@ -32,6 +32,25 @@
"cwd": "packages/shared-components"
},
"dependsOn": ["build", "typedoc"]
},
"test:unit": {
"command": "vitest --project=unit",
"options": { "cwd": "packages/shared-components" }
},
"test:storybook": {
"command": "vitest --project=storybook",
"options": { "cwd": "packages/shared-components" },
"dependsOn": ["typedoc"]
},
"test:storybook:update": {
"command": "playwright-screenshots-experimental nx test:storybook --run --update",
"options": {
"env": {
"CI": "1"
},
"cwd": "packages/shared-components"
},
"dependsOn": ["typedoc"]
}
}
}