feat(create): offer @solidjs/start-devtools during scaffolding - #89
Open
brenelz wants to merge 1 commit into
Open
feat(create): offer @solidjs/start-devtools during scaffolding#89brenelz wants to merge 1 commit into
brenelz wants to merge 1 commit into
Conversation
Adds a wizard step for Solid 2.0 projects that asks whether to add @solidjs/start-devtools (the development toolbar auto-mounted by @solidjs/vite-plugin). On yes, the package is added to the scaffolded project's devDependencies (^1.0.0-next.4), alphabetized and preserving the template's package.json formatting, so the printed install command picks it up. A --devtools flag answers the prompt non-interactively, mirroring --ssr; on non-Solid-2.0 project types the flag warns and is ignored (the package peer-deps on solid-js ^2.0.0-rc.0). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a step to the create-solid wizard that offers to add
@solidjs/start-devtools— the development toolbar auto-mounted by@solidjs/vite-plugin— when scaffolding a Solid 2.0 project.devDependenciesat^1.0.0-next.4, keeping the block alphabetized and preserving the template's package.json formatting, so the printednpm installpicks it up.--devtoolsflag answers the prompt non-interactively, mirroring--ssr. On other project types the flag warns and is ignored — the package peer-deps onsolid-js ^2.0.0-rc.0, so SolidStart 1.x / vanilla / library scaffolds don't qualify.Tests
New
packages/create/tests/devtools.test.tscovers: prompt shown and dep added on yes, project untouched on no, prompt skipped with--devtools, and devDependency sorting/formatting. Full suite green: 52 tests / 10 files.Note: the
^1.0.0-next.4pin lives inconstants.tsand will need bumping as newnextreleases ship, same as the other template pins.🤖 Generated with Claude Code