mirror of
https://github.com/vector-im/element-web.git
synced 2026-03-29 01:01:48 +01:00
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:
parent
2e0adc5832
commit
78b40a6fed
@ -108,7 +108,7 @@ function MyApp() {
|
||||
pnpm install
|
||||
|
||||
# Build the library
|
||||
pnpm prepare
|
||||
pnpm prepack
|
||||
```
|
||||
|
||||
### Running Storybook
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -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"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user