mirror of
https://github.com/vector-im/element-web.git
synced 2026-03-02 20:12:04 +01:00
* feat: add dry run of storybook build in merge queue * Reuse build from storybook build job Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Use nx to build library before building storybook Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
38 lines
1.2 KiB
JSON
38 lines
1.2 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"]
|
|
}
|
|
}
|
|
}
|