fix(storybook): fixing the static-dir issue (#9313)
This commit is contained in:
parent
0d6bdf523d
commit
dbbd7eff83
@ -83,16 +83,10 @@ SSL key to use for serving HTTPS.
|
|||||||
|
|
||||||
Type: `array`
|
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
|
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
|
### stylePreprocessorOptions.includePaths
|
||||||
|
|
||||||
Type: `array`
|
Type: `array`
|
||||||
|
|||||||
@ -50,19 +50,10 @@
|
|||||||
"staticDir": {
|
"staticDir": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"description": "Directory where to load static files from, array of strings",
|
"description": "Directory where to load static files from, array of strings",
|
||||||
"default": [],
|
|
||||||
"items": {
|
"items": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"x-deprecated": "This field has been renamed to staticDirs."
|
"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."
|
||||||
},
|
|
||||||
"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"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"projectBuildConfig": {
|
"projectBuildConfig": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@ -144,28 +135,6 @@
|
|||||||
"description": "The file to include."
|
"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"]
|
"required": ["uiFramework", "config"]
|
||||||
|
|||||||
@ -18,7 +18,6 @@ export interface StorybookExecutorOptions extends CommonNxStorybookConfig {
|
|||||||
sslCert?: string;
|
sslCert?: string;
|
||||||
sslKey?: string;
|
sslKey?: string;
|
||||||
staticDir?: string[];
|
staticDir?: string[];
|
||||||
staticDirs?: string[] | { from: string; to: string }[];
|
|
||||||
watch?: boolean;
|
watch?: boolean;
|
||||||
docsMode?: boolean;
|
docsMode?: boolean;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user