Allow `npm create void` and `void init` to run without prompts
維護者通常 1 天內回覆
已經有一個關聯 PR 被合併了。
- #495 來自 @ashunar0 —— 已合併
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 57/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- node.js, typescript, vite
研究方向
Start by reading the void init and create-void command entry points and the AGENTS.md step mentioned in the issue, which already checks process.env.CI || !process.stdin.isTTY. Trace how the starter, toolchain, framework, database and deploy choices reach the prompts. Done means both commands accept those choices as flags, create-void passes them through, and missing non-interactive answers produce a non-zero exit with the required flag named.
由索引模型根據 Issue 內容生成。
描述
In a non-interactive environment (CI, scripts, coding agents), npm create void prints "✓ Created" without scaffolding anything:
$ npx [email protected] my-app < /dev/null; echo "exit=$?"
◇ Scaffolding starter...
● Empty project detected. Scaffolding a Pages starter...
› Choose a Pages scaffold toolchain:
› Vite+: Uses the Vite+ toolchain and vp commands.
Vite
↑/↓ navigate · Enter confirm
◇ Installing starter dependencies...
✓ Created my-app
cd my-app && npm run dev
exit=0
$ ls -A my-app
node_modules package-lock.json package.json
void init shows the first prompt, then exits with code 0 without creating anything. create-void treats that as success and carries on.
There is also no way to pass the choices as flags. void init only accepts --tsconfig, --git and --github; the starter, toolchain, framework, database and deploy target can only be chosen interactively.
Two requests:
- Let
void inittake the choices as flags, and letnpm create voidpass them through (like--templatein create-vite). - When there is no interactive terminal and an answer is missing, exit with a non-zero code and say which flag is needed.
The AGENTS.md step already checks process.env.CI || !process.stdin.isTTY and skips itself, so the same check could be used here.
- 主要語言
- TypeScript
- 星號
- 402
- 分支
- 32
- 平均合併
- 8 小時 32 分鐘
- 30 天內合併 PR
- 111
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
voidzero-dev/void 的其他 Issue
-
Dev: `better-auth/client/plugins` fails to resolve when auth is enabled (the `better-auth/client` alias matches it as a prefix)可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 2/5 1-3 小時 新手友好度 76/100
voidzero-dev/void#565 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
voidzero-dev/void#529 ·
維護者通常 1 天內回覆
-
bug
難度 1/5 1-3 小時 新手友好度 78/100
voidzero-dev/void#428 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 53/100
voidzero-dev/void#567 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 55/100
voidzero-dev/void#564 ·
維護者通常 1 天內回覆
查看 voidzero-dev/void 的全部 Issue
相似的 Issue
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
難度 2/5 1-3 小時 新手友好度 73/100
openclaw/openclaw#182077 · 1 則留言 · 1 個 reaction ·
維護者通常 1 天內回覆
-
aikido high security
難度 2/5 1-3 小時 新手友好度 75/100
dequelabs/axe-linter-action#161 ·
-
[Feature Request] Update the DimCode agent icon to the 45:32 brand mark可能已有人在做 @eric8810 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 66/100
lyswhut/lx-music-desktop#3026 ·
-
難度 2/5 1-3 小時 新手友好度 76/100
abhigyanpatwari/GitNexus#3704 ·
維護者通常 1 天內回覆