refactor: rename webapp template generate command to ui-bundle @W-21575871@#889
Open
deepu-mungamuri94 wants to merge 12 commits intosalesforcecli:mainfrom
Open
refactor: rename webapp template generate command to ui-bundle @W-21575871@#889deepu-mungamuri94 wants to merge 12 commits intosalesforcecli:mainfrom
deepu-mungamuri94 wants to merge 12 commits intosalesforcecli:mainfrom
Conversation
8b6e192 to
45e5a6f
Compare
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
45e5a6f to
f86dc7e
Compare
…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
bpbuch
reviewed
Mar 27, 2026
messages/project.md
Outdated
| The analytics template provides similar files and the force-app/main/default/waveTemplates directory. | ||
|
|
||
| The reactb2e and reactb2x templates provide React-based project scaffolding for B2E and B2X web application use cases. | ||
| The reactinternalapp and reactexternalapp templates provide React-based project scaffolding for internal and external web application use cases. |
There was a problem hiding this comment.
I don't think this change is correct. The previous names are the expected template names.
@jshackell-sfdc correct me if I'm wrong.
Author
There was a problem hiding this comment.
I believe this is valid change when I've cross checked with webapps(ui-bundle).
1. webapps (template implementations)
↓
2. salesforcedx-templates (template generator library)
↓
3. plugin-templates (SF CLI plugin)
Detailed Flow:
webapps - Creates actual React template apps (reactinternalapp, reactexternalapp)
Published as NPM packages: @salesforce/ui-bundle-template-app-react-template-b2e and @salesforce/ui-bundle-template-app-react-template-b2x
salesforcedx-templates - Consumes webapps templates as devDependencies and includes them in the project generator
Published as: @salesforce/templates (version 66.6.2)
Defines valid template names in [projectGenerator.ts](vscode-webview://19bsi4cc8l4eosqhhi7cgsjkq4l73le1gkl6e1o010h8218uon0f/salesforcedx-templates/src/generators/projectGenerator.ts#L21-L22)
plugin-templates - SF CLI plugin that depends on @salesforce/templates
Exposes templates via CLI commands like sf template generate project
Links :
- The templates were officially renamed from b2e/b2c to reactinternalapp/reactexternalapp in salesforce-experience-platform-emu/webapps#348
Correct me if I'm wrong.
| 'reactexternalapp', | ||
| 'agent', | ||
| 'nativemobile', | ||
| ] as const, |
There was a problem hiding this comment.
Same as above. I don't think these need to be changed.
There was a problem hiding this comment.
Let's remove this afterwards. WI https://gus.lightning.force.com/lightning/r/ADM_Work__c/a07EE00002X8oqNYAR/view
…filenames Made-with: Cursor
Made-with: Cursor
Co-authored-by: Brian Buchanan <5377888+bpbuch@users.noreply.github.com>
Co-authored-by: Brian Buchanan <5377888+bpbuch@users.noreply.github.com>
Co-authored-by: Brian Buchanan <5377888+bpbuch@users.noreply.github.com>
…e webapp alias Made-with: Cursor
Made-with: Cursor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Renames the
sf template generate webappcommand tosf template generate ui-bundleto align with the updated metadata type naming convention.Changes:
What issues does this PR fix or reference?
@W-21575871@