Skip to content

feat(project): @W-24953181@ add vueexternalapp template option - #1110

Merged
WillieRuemmele merged 2 commits into
salesforcecli:mainfrom
rohitkumarsf:t/afs/w-24953181/vue-external-app
Nov 23, 2026
Merged

WillieRuemmele merged 2 commits into
salesforcecli:mainfrom
rohitkumarsf:t/afs/w-24953181/vue-external-app

Conversation

@rohitkumarsf

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds a vueexternalapp option to sf template generate project --template. Users can now create a Salesforce DX project with Vue-based scaffolding for an external UI bundle, the same way they already can with reactexternalapp and angularexternalapp.

sf template generate project --name MyProject --template vueexternalapp

Changes

1. Command flag (src/commands/template/generate/project/index.ts)

  • Adds vueexternalapp to the --template options, after vueinternalapp and before agent.
  • No other flags or behavior change. The value goes to runGenerator with the other options. The generator creates the UI bundle and names it after the alphanumeric form of the project name, as it does for the other app templates.

2. Help text (messages/project.md)

  • Updates the Vue line in flags.template.description to: "The vueinternalapp and vueexternalapp templates provide Vue-based project scaffolding for internal and external UI bundle use cases."

3. README

  • Updated the sf template generate project usage, flag, and description sections to match the new option and help text.

4. @salesforce/templates bump (package.json, yarn.lock)

5. Tests (test/commands/template/generate/project/index.nut.ts)

  • New NUT should create project with vueexternalapp template, modeled on the vueinternalapp test. It checks that:
    • sfdx-project.json is created and contains sourceApiVersion
    • force-app/main/default/uiBundles/<alphanumericName>/<alphanumericName>.uibundle-meta.xml is created and contains the bundle name

Compatibility

  • Adds a new option value only. No existing option, default, or output changes, so the GA command stays backward compatible.

Testing

  • yarn build and yarn test pass.
  • yarn test:nuts: all 202 pass, including the 29 project NUTs and the new vueexternalapp test.

What issues does this PR fix or reference?

@W-24953181@

Add vueexternalapp to the --template flag of sf template generate project.
Update help text and README, bump @salesforce/templates to ^66.21.1,
and add a NUT for the new template.

@W-24953181@
@rohitkumarsf
rohitkumarsf requested a review from a team as a code owner November 23, 2026 08:30
@WillieRuemmele
WillieRuemmele merged commit 16673d5 into salesforcecli:main Nov 23, 2026
17 checks passed
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