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:
@@ -108,7 +108,7 @@ function MyApp() {
|
|||||||
pnpm install
|
pnpm install
|
||||||
|
|
||||||
# Build the library
|
# Build the library
|
||||||
pnpm prepare
|
pnpm prepack
|
||||||
```
|
```
|
||||||
|
|
||||||
### Running Storybook
|
### Running Storybook
|
||||||
|
|||||||
@@ -38,14 +38,14 @@
|
|||||||
"i18n": "matrix-gen-i18n src && pnpm i18n:sort && pnpm i18n:lint",
|
"i18n": "matrix-gen-i18n src && pnpm i18n:sort && pnpm i18n:lint",
|
||||||
"i18n:sort": "matrix-sort-i18n src/i18n/strings/en_EN.json",
|
"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",
|
"i18n:lint": "matrix-i18n-lint && prettier --log-level=silent --write src/i18n/strings/ --ignore-path /dev/null",
|
||||||
"test:unit": "vitest --project=unit",
|
"test:unit": "nx test:unit",
|
||||||
"test:storybook": "pnpm build:doc && vitest --project=storybook",
|
"test:storybook": "nx test:storybook",
|
||||||
"test:storybook:update": "CI=1 playwright-screenshots-experimental pnpm vitest --run --update --project=storybook",
|
"test:storybook:update": "nx test:storybook:update",
|
||||||
"build": "nx build",
|
"build": "nx build",
|
||||||
"prepack": "pnpm run build",
|
"prepack": "pnpm run build",
|
||||||
"storybook": "storybook dev -p 6007",
|
"storybook": "storybook dev -p 6007",
|
||||||
"build:storybook": "nx run @element-hq/web-shared-components:storybook",
|
"build:storybook": "nx storybook",
|
||||||
"build:doc": "nx run @element-hq/web-shared-components:typedoc",
|
"build:doc": "nx typedoc",
|
||||||
"lint": "pnpm lint:types && pnpm lint:js",
|
"lint": "pnpm lint:types && pnpm lint:js",
|
||||||
"lint:js": "eslint --max-warnings 0 src",
|
"lint:js": "eslint --max-warnings 0 src",
|
||||||
"lint:types": "tsc --noEmit && tsc --noEmit -p tsconfig.node.json"
|
"lint:types": "tsc --noEmit && tsc --noEmit -p tsconfig.node.json"
|
||||||
|
|||||||
@@ -32,6 +32,25 @@
|
|||||||
"cwd": "packages/shared-components"
|
"cwd": "packages/shared-components"
|
||||||
},
|
},
|
||||||
"dependsOn": ["build", "typedoc"]
|
"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"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user