Skip to content

W-22415490 feat: add generation of top level graphqlrc.yml file for generating react uiBundles#936

Open
emanchan wants to merge 1 commit into
salesforcecli:mainfrom
emanchan:emanchan/create-graphqlrc-file-at-project-root
Open

W-22415490 feat: add generation of top level graphqlrc.yml file for generating react uiBundles#936
emanchan wants to merge 1 commit into
salesforcecli:mainfrom
emanchan:emanchan/create-graphqlrc-file-at-project-root

Conversation

@emanchan
Copy link
Copy Markdown

@emanchan emanchan commented May 12, 2026

@W-22415490@

@emanchan emanchan changed the title feat: add generation of top level graphqlrc.yml file for generating react uiBundles feat: W-22415490 add generation of top level graphqlrc.yml file for generating react uiBundles May 12, 2026
@emanchan emanchan changed the title feat: W-22415490 add generation of top level graphqlrc.yml file for generating react uiBundles W-22415490 feat: add generation of top level graphqlrc.yml file for generating react uiBundles May 12, 2026
templates: getCustomTemplates(this.configAggregator),
});

if (flags.template === 'reactbasic') {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in theory, this should be part of all UIBundles, in fact, maybe all of the sfdx projects. the issue is that in lwc ones, we don't pull the schema down.

Note: i would feel more comfortable if we add it for the ones we know and pull the schema.

templateType: TemplateType.UIBundle,
opts: flagsAsOptions,
ux: new Ux({ jsonEnabled: this.jsonEnabled() }),
templates: getCustomTemplates(this.configAggregator),
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where's the origin of these "CustomTemplates"? what's the difference between adding it here (flags.template below), versus in the reactbasic "customTemplate"?

return {
...result,
created: [...result.created, targetRelative],
rawOutput: `${result.rawOutput.replace(/\n$/, '')}\n create ${targetRelative}\n`,
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it create or created? we should match the others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants