Skip to content

feat(create): offer @solidjs/start-devtools during scaffolding - #89

Open
brenelz wants to merge 1 commit into
solidjs-community:mainfrom
brenelz:feat/create-devtools-prompt
Open

feat(create): offer @solidjs/start-devtools during scaffolding#89
brenelz wants to merge 1 commit into
solidjs-community:mainfrom
brenelz:feat/create-devtools-prompt

Conversation

@brenelz

@brenelz brenelz commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

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.

  • After template/SSR selection, Solid 2.0 projects get a confirm prompt: "Add @solidjs/start-devtools (development toolbar)?"
  • On yes, the package is added to the scaffolded project's devDependencies at ^1.0.0-next.4, keeping the block alphabetized and preserving the template's package.json formatting, so the printed npm install picks it up.
  • A --devtools flag answers the prompt non-interactively, mirroring --ssr. On other project types the flag warns and is ignored — the package peer-deps on solid-js ^2.0.0-rc.0, so SolidStart 1.x / vanilla / library scaffolds don't qualify.
  • No config wiring is needed: installing the dependency is the whole setup, and in production builds the package is a children-only passthrough.

Tests

New packages/create/tests/devtools.test.ts covers: 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.4 pin lives in constants.ts and will need bumping as new next releases ship, same as the other template pins.

🤖 Generated with Claude Code

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>
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