Skip to content

Add Template Command#35

Open
AaravMalani wants to merge 2 commits into
mainfrom
chore/add-template
Open

Add Template Command#35
AaravMalani wants to merge 2 commits into
mainfrom
chore/add-template

Conversation

@AaravMalani

Copy link
Copy Markdown
Member

This PR adds the yarn template command which interactively allows plugin creation. This replaces the prior (and more complicated) method of manually copying the example template over and changing the required files.

Wiki Changes

  • Document the change in the Plugin Creation page

@changeset-bot

changeset-bot Bot commented Jun 17, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: afb94cd

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a template generation tool to scaffold new plugins (runner, common, and web) using @inquirer/prompts. It adds the template files, utility functions, and a new yarn template script. The review feedback highlights several critical improvements: preventing silent overwrites of existing plugin directories, ensuring Windows compatibility by normalizing path separators for fs.glob, resolving a configuration mismatch for external plugins between package.json and rollup.config.mjs, and refining the default class name generation to avoid duplicate suffixes.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread lib/templates/template.ts
Comment thread lib/templates/template.ts Outdated
Comment thread lib/templates/template.ts
Comment thread lib/templates/utils.ts
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