mirror of
https://github.com/vector-im/element-web.git
synced 2026-03-29 18:22:09 +02:00
* 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>
57 lines
1.9 KiB
JSON
57 lines
1.9 KiB
JSON
{
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
"projectType": "library",
|
|
"targets": {
|
|
"build": {
|
|
"cache": true,
|
|
"command": "vite build",
|
|
"inputs": ["src"],
|
|
"outputs": ["{projectRoot}/dist"],
|
|
"options": { "cwd": "packages/shared-components" }
|
|
},
|
|
"start": {
|
|
"command": "vite build --watch",
|
|
"options": { "cwd": "packages/shared-components" },
|
|
"continuous": true
|
|
},
|
|
"typedoc": {
|
|
"cache": "true",
|
|
"command": "typedoc",
|
|
"inputs": ["src"],
|
|
"outputs": ["{projectRoot}/typedoc"],
|
|
"options": { "cwd": "packages/shared-components" }
|
|
},
|
|
"storybook": {
|
|
"cache": "true",
|
|
"inputs": ["src", "{projectRoot}/.storybook", "{projectRoot}/typedoc"],
|
|
"outputs": ["{projectRoot}/storybook-static"],
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"commands": ["storybook build", "node scripts/storybook-build-i18n.ts"],
|
|
"parallel": false,
|
|
"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"]
|
|
}
|
|
}
|
|
}
|