Файли
openidea/generators/fastify.toml
T
arookieofc-ai[bot]таarookieofc-ai 0fe7fa9b48 feat(scaffold): add Fastify project generator (#8086)
New Project › JavaScript gains Fastify, generated with the official create-fastify package, with the package manager choice and the optional dependency install the other Node generators have.

Co-authored-by: arookieofc-ai <[email protected]>
2026-12-05 01:26:47 +08:00

43 рядки
809 B
TOML

id = "fastify"
name = "Fastify"
group = "JavaScript"
icon = "project-node"
order = 9
description = "A Fastify server from create-fastify."
[[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 = "pm"
label = "Package manager:"
type = "choice"
segmented = true
options = ["npm", "pnpm", "yarn", "bun"]
default = "npm"
[[fields]]
id = "install"
label = "Install dependencies"
type = "checkbox"
default = "true"
[[steps]]
label = "Running create-fastify"
package = "create-fastify@latest"
cwd = "parent"
args = ["{{name}}"]
[[after]]
label = "Installing dependencies"
program = "{{pm}}"
args = ["install"]
when = { install = "true" }