Skip to content

refactor: rename webapp command to ui-bundle#894

Open
garychangsf wants to merge 7 commits intosalesforcecli:mainfrom
garychangsf:rename-webapp-to-ui-bundle
Open

refactor: rename webapp command to ui-bundle#894
garychangsf wants to merge 7 commits intosalesforcecli:mainfrom
garychangsf:rename-webapp-to-ui-bundle

Conversation

@garychangsf
Copy link
Copy Markdown

Summary

  • Renames the webapp:generate command to template:generate:ui-bundle with webapp:generate kept as a backward-compatible alias
  • Renames React project templates from reactb2e/reactb2x to reactinternalapp/reactexternalapp
  • Updates message files, command snapshot, and tests to reflect the new naming

Test plan

  • Unit tests pass (yarn test)
  • NUT tests pass for template:generate:ui-bundle
  • Verify webapp:generate alias still works for backward compatibility

deepu-mungamuri94 and others added 4 commits March 27, 2026 13:42
Rename `sf template generate webapp` to `sf template generate ui-bundle`:

- Rename src/commands/template/generate/webapp/ to ui-bundle/
- Rename messages/webApplication.md to messages/ui-bundle.generate.md
- Extract UI_BUNDLES_DIR constant for the uiBundles folder name
- Update command-snapshot.json with new ui-bundle command entry
- Update package.json oclif topics to reflect ui-bundle namespace
- Update CLAUDE.md and add-template-generator skill with ui-bundle examples

W-21575871

Made-with: Cursor
…nternalapp/reactexternalapp

- Replace deprecated reactb2e and reactb2x template names with
  reactinternalapp and reactexternalapp in the project generate command
  options, improving clarity by reflecting the internal vs external
  audience distinction instead of opaque B2E/B2X codes
- Add nativemobile as a new supported template option
- Bump @salesforce/templates to 66.6.2 to pick up the uiBundles
  output directory rename (previously webapplications) and aligned
  internal template identifiers
- Update NUT tests to use the new template names and uiBundles path
- Update messages to document the renamed templates correctly

Made-with: Cursor
@garychangsf garychangsf requested a review from a team as a code owner March 29, 2026 00:41
name: add-template-generator
description: Add a new template generator command to the CLI
---

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I don't think we need to update this skill with the rename.

Comment on lines +40 to +41
'reactinternalapp',
'reactexternalapp',
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

These don't need to change.

public static readonly hidden = true; // Hide from external developers until GA
public static readonly aliases = ['webapp:generate'];
public static readonly deprecateAliases = true;
public static readonly aliases = ['ui-bundle:generate', 'webapp:generate'];
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
public static readonly aliases = ['ui-bundle:generate', 'webapp:generate'];
public static readonly aliases = ['ui-bundle:generate'];

Comment on lines +98 to +100
templateType: TemplateType.X,
opts: flags,
ux
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
templateType: TemplateType.X,
opts: flags,
ux
templateType: TemplateType.X,
opts: flags,
ux

sf template generate {metadataType} {optionalSubTemplate}

Examples:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change

src/commands/template/generate/{metadataType}/

Files:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change

{
"alias": ["webapp:generate"],
"command": "template:generate:webapp",
"alias": ["ui-bundle:generate", "webapp:generate"],
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
"alias": ["ui-bundle:generate", "webapp:generate"],
"alias": ["ui-bundle:generate"],

package.json Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Does this version bump line up with template rename updates?

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.

4 participants