mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-15 08:08:18 +00:00
File › New Project offers 38 generators grouped by language (Java, Spring Boot, Quarkus, Micronaut, Kotlin, Ktor, Scala, Python/Django/FastAPI/Flask, Node/Vite/Next.js/Nuxt/Angular/SvelteKit/Astro/NestJS/Express, Go, Rust, C/C++, Zig, .NET, PHP/Laravel/Symfony, Ruby/Rails, Dart/Flutter, Swift, Elixir/Phoenix, Haskell, static website, empty). Each is a declaration in generators/<id>.toml run by the new ide-scaffold crate: built-in templates, the framework's official CLI run non-interactively, or a project service zip (Spring Initializr, code.quarkus.io, Micronaut Launch) whose metadata becomes form fields. Projects are built in a staging directory and moved into place only on success. The dialog renders each form from its schema, flags missing toolchains with install hints and streams progress; created projects open trusted. New Project is also on the welcome screen and the title bar project menu. Closes #709
52 lines
1.0 KiB
TOML
52 lines
1.0 KiB
TOML
id = "nestjs"
|
|
name = "NestJS"
|
|
group = "JavaScript"
|
|
icon = "project-nestjs"
|
|
order = 7
|
|
description = "A NestJS server from the Nest CLI."
|
|
|
|
[[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 = "strict"
|
|
label = "Strict TypeScript"
|
|
type = "checkbox"
|
|
default = "true"
|
|
|
|
[[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 nest new"
|
|
package = "@nestjs/cli@latest"
|
|
cwd = "parent"
|
|
args = [
|
|
"new", "{{name}}", "--package-manager", "{{pm}}", "--skip-git", "--skip-install", "--language", "TS",
|
|
{ when = { strict = "true" }, args = ["--strict"] },
|
|
]
|
|
|
|
[[after]]
|
|
label = "Installing dependencies"
|
|
program = "{{pm}}"
|
|
args = ["install"]
|
|
when = { install = "true" }
|