Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improvement(create), provide an infra for interactive templates #9610

Merged
merged 1 commit into from
Mar 7, 2025

Conversation

davidfirst
Copy link
Member

Proposed Changes

  • Provide an API for component-templates creator promptOptions. If implemented, bit create will show the prompts, gather the info needed, and then pass this info to the generateFiles() of the template.
  • Support adding the prompt-options as flags. (e.g. bit create comp some-template -- --bundler webpack).
  • This infrastructure eliminates the need from templates creator to import a prompt library and implement all of it themselves.
  • The main reason of implementing this is to enable the IDE extension to display prompts within the IDE UI and create the components according to the user's input.

@davidfirst davidfirst merged commit d9ba20f into master Mar 7, 2025
10 checks passed
@davidfirst davidfirst deleted the ide-template-interactive branch March 7, 2025 00:35
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