Файли
openidea/generators/hono.toml
T
LU XIANGRUIтаwildcatDownstairs 6d22097e9a feat(scaffold): add Hono and Elysia project generators (#8161)
File > New Project > JavaScript gains Hono and Elysia generators. Hono runs create-hono non-interactively with the chosen template and package manager (it installs dependencies itself, since it prompts without --install) and requires Node.js 20.19+. Elysia requires Bun 1.0+, runs `bun create --no-install --no-git elysia <name>`, then `bun install` when Install dependencies is checked; Git is initialized by the scaffold engine.

Closes #7955

Co-authored-by: wildcatDownstairs <[email protected]>
2026-12-05 14:19:02 +08:00

50 рядки
1.3 KiB
TOML

id = "hono"
name = "Hono"
group = "JavaScript"
icon = "project-node"
order = 9
description = "A Hono app from create-hono."
[[requires]]
program = "node"
min = "20.19"
hint = "Install Node.js 20.19 or later: https://nodejs.org"
[[requires]]
program = "{{pm}}"
when = { pm = ["pnpm", "yarn", "bun"] }
hint = "Install it, or choose npm."
[[fields]]
id = "template"
label = "Template:"
type = "choice"
options = [
{ value = "nodejs", label = "Node.js" },
{ value = "cloudflare-workers", label = "Cloudflare Workers" },
{ value = "cloudflare-workers+vite", label = "Cloudflare Workers + Vite" },
{ value = "cloudflare-pages", label = "Cloudflare Pages" },
{ value = "bun", label = "Bun" },
{ value = "deno", label = "Deno" },
{ value = "vercel", label = "Vercel" },
{ value = "netlify", label = "Netlify" },
{ value = "aws-lambda", label = "AWS Lambda" },
{ value = "nextjs", label = "Next.js" },
]
default = "nodejs"
[[fields]]
id = "pm"
label = "Package manager:"
type = "choice"
segmented = true
options = ["npm", "pnpm", "yarn", "bun"]
default = "npm"
# create-hono prompts unless --install is given, so it installs dependencies itself.
[[steps]]
label = "Running create-hono"
package = "create-hono@latest"
cwd = "parent"
args = ["{{name}}", "--template", "{{template}}", "--pm", "{{pm}}", "--install"]