Skip to content

feat: add compute template and --compute-language to template generate project - #1111

Draft
michaelmalave wants to merge 1 commit into
salesforcecli:mainfrom
michaelmalave:mm/feat/W-24283421-compute-template
Draft

michaelmalave wants to merge 1 commit into
salesforcecli:mainfrom
michaelmalave:mm/feat/W-24283421-compute-template

Conversation

@michaelmalave

Copy link
Copy Markdown

What does this PR do?

Lets developers create a compute app with the standard project-creation command, sf template generate project, instead of the deprecated sf compute generate.

  • Add compute to the --template choices.
  • Add a --compute-language flag (node or python) that has no default and is required when the compute template is chosen, like --lwc-language is for LWC projects.
  • Fail with a clear error if --template compute is used without --compute-language, or if --compute-language is used with any other template.
  • Document the new choice and flag in the help text and examples, and update the command snapshot.
  • Add NUTs that generate a compute app for each language and cover the three error cases.

Depends on salesforcedx-templates#972, which adds the compute template to the shared library. The @salesforce/templates dependency still needs to be bumped to the release that contains it before this can merge; until then the new NUTs fail in CI because ^66.21.1 has no compute template.

Verification: the five new compute NUTs pass locally against a build of the library from #972. snapshot:compare, schema:compare and commandreference:generate --erroronwarnings pass.

What issues does this PR fix or reference?

W-24283421

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant