Skip to content

feat(cli): suggest framework commands for bare vp dev - #3104

Open
fengmk2 wants to merge 6 commits into
mainfrom
feat/dev-framework-hint
Open

fengmk2 wants to merge 6 commits into
mainfrom
feat/dev-framework-hint

Conversation

@fengmk2

@fengmk2 fengmk2 commented Oct 18, 2026 •

Copy link
Copy Markdown
Member

vp dev starts Vite in projects that use Astro, Nuxt, or VitePress. Without a dev script or task, users get no hint about the framework command.

With no arguments, vp dev now checks the selected package's dependencies and devDependencies for these frameworks. If no dev script or task exists, it suggests the framework command through vp exec. Dynamic task configuration suppresses the hint when task detection is uncertain.

For an Astro project without a dev script or task:

$ vp dev
note: This package depends on Astro and has no dev script or task. `vp dev` starts the Vite dev server. To start the Astro dev server, run `vp exec astro dev`.

VitePress hints require .vitepress in the package root or under docs/. The suggested command includes docs when needed. Packages with an explicit Vite app entry or configuration do not get the VitePress hint.

The hint identifies the package directory after -C, defaultPackage, or workspace selection. Vite still starts, with screen clearing disabled so the hint stays visible. Commands started by scripts skip the hint.

For a VitePress project at /project/site with configuration under docs/.vitepress:

$ vp -C /project/site dev
note: This package depends on VitePress and has no dev script or task. `vp dev` starts the Vite dev server. To start the VitePress dev server, change to `/project/site` and run `vp exec vitepress dev docs`.

The run guide distinguishes scripts from tasks and uses the same build example throughout.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://feat-dev-framework-hint-viteplus-dev.voidzero-docs.workers.dev (commit 6099674)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://abb45438-viteplus-dev.voidzero-docs.workers.dev 6099674 2026-10-19T05:41:25.588Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://a48b4294-viteplus-dev.voidzero-docs.workers.dev 0a7be5a 2026-10-19T05:39:10.072Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://db013b0a-viteplus-dev.voidzero-docs.workers.dev f96f4f4 2026-10-18T14:18:10.018Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://9e9a2fd7-viteplus-dev.voidzero-docs.workers.dev 2da0208 2026-10-18T13:35:01.697Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://8c359660-viteplus-dev.voidzero-docs.workers.dev abddbd4 2026-10-18T08:53:11.032Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://ba9979bc-viteplus-dev.voidzero-docs.workers.dev 2a2c72b 2026-10-18T08:33:50.341Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://757276ae-viteplus-dev.voidzero-docs.workers.dev c346da9 2026-10-18T08:26:07.290Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://eba23f7d-viteplus-dev.voidzero-docs.workers.dev 031b31a 2026-10-18T08:24:42.240Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://6dcd380f-viteplus-dev.voidzero-docs.workers.dev 1f7de86 2026-10-18T08:19:27.004Z Visit the dashboard ↗

@socket-security

socket-security Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​vitepress@​1.6.4981008490100
Addednpm/​astro@​7.4.0981008897100

View full report

@github-actions

github-actions Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

✅ Staging deployment successful!

Preview: https://viteplus-staging.void.app/
Commit: 6099674

@fengmk2
fengmk2 force-pushed the feat/dev-framework-hint branch from 1f7de86 to 031b31a Compare October 18, 2026 08:23
@fengmk2

fengmk2 commented Oct 18, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-18T09:03:16.348830Z abddbd4 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2a2c72b207

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/cli/binding/src/cli/framework_note.rs Outdated
Comment thread packages/cli/binding/src/cli/framework_note.rs
@github-actions

github-actions Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

CLI artifact sizes (6099674)

Final release artifacts built by the canonical build-upstream and build-windows-cli actions.
The dist rows use the Linux build. The core total excludes .node files to match the release artifact.

Artifact Format Base PR Change
packages/cli/dist Directory total 2.11 MiB 2.11 MiB 0 B (0.00%)
packages/core/dist Directory total 4.08 MiB 4.08 MiB 0 B (0.00%)
Combined package dist Directory total 6.19 MiB 6.19 MiB 0 B (0.00%)
vp (Linux x64) Binary 7.18 MiB 7.18 MiB 0 B (0.00%)
vp (Linux x64) gzip -9 3.33 MiB 3.33 MiB 0 B (0.00%)
NAPI (Linux x64) Binary 34.72 MiB 34.72 MiB +4.00 KiB (+0.01%)
NAPI (Linux x64) gzip -9 13.84 MiB 13.84 MiB +2.00 KiB (+0.01%)
vp (macOS ARM64) Binary 4.76 MiB 4.76 MiB 0 B (0.00%)
vp (macOS ARM64) gzip -9 2.85 MiB 2.85 MiB 0 B (0.00%)
NAPI (macOS ARM64) Binary 41.65 MiB 41.67 MiB +16.14 KiB (+0.04%)
NAPI (macOS ARM64) gzip -9 18.01 MiB 18.01 MiB +3.00 KiB (+0.02%)
vp (Windows x64) Binary 5.23 MiB 5.23 MiB 0 B (0.00%)
vp (Windows x64) gzip -9 2.45 MiB 2.45 MiB +1 B (+0.00%)
NAPI (Windows x64) Binary 30.77 MiB 30.78 MiB +4.00 KiB (+0.01%)
NAPI (Windows x64) gzip -9 12.54 MiB 12.54 MiB +2.56 KiB (+0.02%)
Trampoline (Windows x64) Binary 13.50 KiB 13.50 KiB 0 B (0.00%)
Trampoline (Windows x64) gzip -9 7.09 KiB 7.09 KiB -1 B (-0.01%)
Installer (Windows x64) Binary 3.64 MiB 3.64 MiB 0 B (0.00%)
Installer (Windows x64) gzip -9 1.78 MiB 1.78 MiB 0 B (0.00%)

@fengmk2 fengmk2 changed the title feat(cli): suggest framework commands for vp dev without a script feat(cli): suggest framework commands for bare vp dev Oct 18, 2026
@fengmk2

fengmk2 commented Oct 18, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: abddbd4591

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@fengmk2
fengmk2 force-pushed the feat/dev-framework-hint branch from abddbd4 to 2da0208 Compare October 18, 2026 13:34
@fengmk2
fengmk2 force-pushed the feat/dev-framework-hint branch from 0a7be5a to 6099674 Compare October 19, 2026 05:40
@fengmk2 fengmk2 self-assigned this Oct 19, 2026
@fengmk2
fengmk2 marked this pull request as ready for review October 19, 2026 05:44

This branch has not been deployed

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