-
Notifications
You must be signed in to change notification settings - Fork 167
feat: @w-22893150 - add support for FragmentBundle metadata #1784
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -71,7 +71,8 @@ | |
| "waveTemplates": "wavetemplatebundle", | ||
| "appTemplates": "appframeworktemplatebundle", | ||
| "lightningTypes": "lightningtypebundle", | ||
| "uiBundles": "uibundle" | ||
| "uiBundles": "uibundle", | ||
| "fragments": "fragmentbundle" | ||
| }, | ||
| "suffixes": { | ||
| "Canvas": "canvasmetadata", | ||
|
|
@@ -5371,6 +5372,18 @@ | |
| "directoryName": "policyRuleDefinitionSets", | ||
| "inFolder": false, | ||
| "strictDirectoryName": false | ||
| }, | ||
| "fragmentbundle": { | ||
| "id": "fragmentbundle", | ||
| "name": "FragmentBundle", | ||
| "directoryName": "fragments", | ||
| "inFolder": false, | ||
| "strictDirectoryName": true, | ||
| "strategies": { | ||
| "adapter": "bundle" | ||
| }, | ||
| "supportsPartialDelete": true, | ||
| "metaFileSuffix": "fragment.json" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As Venu mentioned there would be other files as well like "-meta.xml". Need to support that. |
||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -400,7 +400,13 @@ const parseAsMetadata = | |
| if (tree.isDirectory(fsPath)) { | ||
| return; | ||
| } | ||
| return ['DigitalExperience', 'ExperiencePropertyTypeBundle', 'LightningTypeBundle', 'ContentTypeBundle'] | ||
| return [ | ||
| 'DigitalExperience', | ||
| 'ExperiencePropertyTypeBundle', | ||
| 'LightningTypeBundle', | ||
| 'ContentTypeBundle', | ||
| 'FragmentBundle', | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The prettier formatter in the pre-commit hook is reformatting it back to |
||
| ] | ||
| .map((type) => registry.getTypeByName(type)) | ||
| .find((type) => fsPath.split(sep).includes(type.directoryName))?.name; | ||
| }; | ||
|
|
||
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.
Renaming this to
widgetsonce the discussion concludes in a separate WI right?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.
yes