fix(storybook): fixing the static-dir issue (#9313)

This commit is contained in:
Katerina Skroumpelou 2022-03-14 17:53:15 +02:00 committed by GitHub
parent 0d6bdf523d
commit dbbd7eff83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 40 deletions

View File

@ -83,16 +83,10 @@ SSL key to use for serving HTTPS.
Type: `array`
**Deprecated:** This field has been renamed to staticDirs.
**Deprecated:** In Storybook 6.4 the `--static-dir` CLI flag has been replaced with the the `staticDirs` field in `.storybook/main.js`. It will be removed completely in Storybook 7.0.
Directory where to load static files from, array of strings
### staticDirs
Type: `array`
Directory where to load static files from, array of strings or object with from, to keys
### stylePreprocessorOptions.includePaths
Type: `array`

View File

@ -50,19 +50,10 @@
"staticDir": {
"type": "array",
"description": "Directory where to load static files from, array of strings",
"default": [],
"items": {
"type": "string"
},
"x-deprecated": "This field has been renamed to staticDirs."
},
"staticDirs": {
"type": "array",
"description": "Directory where to load static files from, array of strings or object with from, to keys",
"default": [],
"items": {
"$ref": "#/definitions/staticDirPattern"
}
"x-deprecated": "In Storybook 6.4 the `--static-dir` CLI flag has been replaced with the the `staticDirs` field in `.storybook/main.js`. It will be removed completely in Storybook 7.0."
},
"projectBuildConfig": {
"type": "string",
@ -144,28 +135,6 @@
"description": "The file to include."
}
]
},
"staticDirPattern": {
"oneOf": [
{
"type": "object",
"properties": {
"from": {
"type": "string",
"description": "From path"
},
"to": {
"type": "string",
"description": "To path"
}
},
"additionalProperties": false,
"required": ["from", "to"]
},
{
"type": "string"
}
]
}
},
"required": ["uiFramework", "config"]

View File

@ -18,7 +18,6 @@ export interface StorybookExecutorOptions extends CommonNxStorybookConfig {
sslCert?: string;
sslKey?: string;
staticDir?: string[];
staticDirs?: string[] | { from: string; to: string }[];
watch?: boolean;
docsMode?: boolean;
}