-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/create command for variants configuration #2446
base: main
Are you sure you want to change the base?
Conversation
…ools into feat/create-variantsConfig
…ools into feat/create-variantsConfig
@@ -0,0 +1,16 @@ | |||
import type { MiddlewareConfig as PreviewConfig } from '@sap-ux/preview-middleware'; | |||
|
|||
export type FioriToolsDeprecatedPreviewConfig = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tobiasqueck There already exists a type that represents the deprecated config preview config in ui5-config/src/types/index.ts. That still seems to be used to generate outdated configs (see here). Do we need to address this in this PR as well? Or is this part of some generator adjustments that will come later because it seems to be used in app writer (here)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this type (and previewConfigOptions) be moved to preview middleware?
try { | ||
previewMiddleware = await getPreviewMiddleware(undefined, basePath); | ||
} catch (error) { | ||
//todo: what to do in case there is no ui5.yaml file? try FileName.Ui5MockYaml or FileName.Ui5LocalYaml as fallback? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tobiasqueck you thoughts about potential fallbacks for RTA editor path?
Quality Gate passedIssues Measures |
PR introduces create command to add Configuration for Variants Creation.
Prerequisite for:
#2172