-
Notifications
You must be signed in to change notification settings - Fork 99
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: Adds a new metadata bundle type for AppFrameworkTemplates #1442
feat: Adds a new metadata bundle type for AppFrameworkTemplates #1442
Conversation
Thanks for the contribution! It looks like @rvwatch is an internal user so signing the CLA is not required. However, we need to confirm this. |
@@ -4639,6 +4644,49 @@ | |||
"directoryName": "extlClntAppPushPolicies", | |||
"inFolder": false, | |||
"strictDirectoryName": false | |||
}, | |||
"appframeworktemplatebundle": { |
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.
I only added this guy. Scripts added the rest.
src/utils/filePathGenerator.ts
Outdated
@@ -112,17 +112,26 @@ export const filePathsFromMetadataComponent = ( | |||
|
|||
// lwc, aura, waveTemplate, experiencePropertyType | |||
if (type.strategies?.adapter === 'bundle') { | |||
const mappings = new Map<string, string>([ | |||
const mappings = new Map<string, string | string[]>([ |
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.
I didn't want to mess around with the other bundles, so the only way I could get this to accept my new bundle and still pass the tests was to add the or string[].
src/utils/filePathGenerator.ts
Outdated
const matched = mappings.get(type.name); | ||
if (!matched) { | ||
throw messages.createError('unsupportedBundleType', [type.name]); | ||
} | ||
return [matched]; | ||
|
||
return Array.isArray(matched) ? matched : [matched]; |
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.
Dealing with my array of strings or strings situation.
…tead of | string[]
What does this PR do?
Adds a new metadata bundle type for AppFrameworkTemplates.
What issues does this PR fix or reference?
@W-16928554@
#, @@
Functionality Before
CLI no have AppFrameworkTemplates metadata
<insert gif and/or summary>
Functionality After
CLI now have AppFrameworkTemplates metadata!
<insert gif and/or summary>