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
- 平均合併
- 10 小時 18 分鐘
- 30 天內合併 PR
- 113
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
voidzero-dev/void 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 72/100
voidzero-dev/void#529 ·
維護者通常 1 天內回覆
-
bug
難度 1/5 1-3 小時 新手友好度 78/100
voidzero-dev/void#428 ·
維護者通常 1 天內回覆
-
Auth config regeneration in dev can reuse a cached config可能已有人在做 @Brooooooklyn 今天認領。 未關閉
難度 4/5 3-5 天 新手友好度 35/100
voidzero-dev/void#550 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 46/100
voidzero-dev/void#547 ·
維護者通常 1 天內回覆
-
難度 5/5 一週以上 新手友好度 38/100
voidzero-dev/void#546 ·
維護者通常 1 天內回覆
查看 voidzero-dev/void 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 68/100
maniator/verticopolis#1303 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 73/100
components-web-app/docs#297 ·
-
難度 2/5 1-3 小時 新手友好度 68/100
appwrite/mcp-for-docs#23 · 1 則留言 ·
-
`@vanilla-extract/turbopack-plugin`: "getImageSize is not a function" with Next.js 16.4.x when a `.css.ts` file imports an image可能已有人在做 @aevarOrigo 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
vanilla-extract-css/vanilla-extract#1799 · 1 則留言 ·
-
native
難度 2/5 1-3 小時 新手友好度 72/100
prime-radiant-inc/evener#4839 ·
維護者通常 1 天內回覆