Skip to content

feat: add vuebasic template option to ui-bundle generate + unit tests#982

Open
rohitkumarsf wants to merge 2 commits into
salesforcecli:mainfrom
rohitkumarsf:feature/vue-support-phase1
Open

feat: add vuebasic template option to ui-bundle generate + unit tests#982
rohitkumarsf wants to merge 2 commits into
salesforcecli:mainfrom
rohitkumarsf:feature/vue-support-phase1

Conversation

@rohitkumarsf

Copy link
Copy Markdown

Add vuebasic template option to sf template generate ui-bundle

Exposes the vuebasic option on the --template flag of
sf template generate ui-bundle, so the CLI can scaffold a Vue 3 UI bundle
(backed by the vuebasic generator in @salesforce/templates).

Feature changes (already on the branch)

  • src/commands/template/generate/ui-bundle/index.ts — added vuebasic to the
    --template flag's accepted options.
  • messages/ui-bundle.generate.md — added a vuebasic usage example.
  • test/commands/template/generate/ui-bundle/index.nut.ts — added a vuebasic
    NUT, intentionally describe.skip'd until @salesforce/templates with vuebasic
    is published (NUTs need org access + the published upstream).

Tests added in this PR

test/commands/template/generate/ui-bundle/index.test.ts — offline unit tests
that verify the flag change without an org or the published generator:

  • vuebasic is in the --template flag options array
  • the options array is ['default', 'reactbasic', 'vuebasic']
  • --template defaults to 'default'
  • --template vuebasic parses without a validation error
  • an invalid --template value is rejected with the expected message
  • --name is required

Verification

  • npx tsc -bgreen
  • npx mocha "test/**/*.test.ts"14 passing (the vuebasic NUT stays skipped)

Add vuebasic as a new template option for sf template generate ui-bundle command.
This mirrors the existing reactbasic pattern and exposes the vuebasic template
that will be provided by @salesforce/templates.

Changes:
- Add 'vuebasic' to template flag options in ui-bundle/index.ts
- Add Vue example to ui-bundle.generate.md messages
- Add skipped NUT test for vuebasic template (pending upstream support)
@rohitkumarsf rohitkumarsf requested a review from a team as a code owner July 4, 2026 17:12
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.

1 participant