дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-04 17:21:13 +02:00
New Project gains three JavaScript generators that run the official packages through the chosen package manager: Vue (create-vue) with TypeScript, Vue Router, Pinia, Vitest and ESLint options; Expo (React Native) with blank, blank TypeScript and tabs templates; and Electron (Electron Forge) with Vite, Vite + TypeScript and webpack + TypeScript. create-vue gets a kebab-case folder renamed to the project name and a no-op flag when every option is off so it never prompts. Electron always installs, since Forge writes the dependencies by installing them. Static Website moves to the end of the group. Brand icons and en/zh strings added. Closes #6338 Co-authored-by: wildcatDownstairs <[email protected]>
84 рядки
1.8 KiB
TOML
84 рядки
1.8 KiB
TOML
id = "vue"
|
|
name = "Vue (create-vue)"
|
|
group = "JavaScript"
|
|
icon = "project-vue"
|
|
order = 9
|
|
description = "A Vue app from create-vue, with optional router, Pinia, Vitest and ESLint."
|
|
|
|
[[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 = "ts"
|
|
label = "TypeScript"
|
|
type = "checkbox"
|
|
default = "true"
|
|
|
|
[[fields]]
|
|
id = "router"
|
|
label = "Vue Router"
|
|
type = "checkbox"
|
|
default = "false"
|
|
|
|
[[fields]]
|
|
id = "pinia"
|
|
label = "Pinia"
|
|
type = "checkbox"
|
|
default = "false"
|
|
|
|
[[fields]]
|
|
id = "vitest"
|
|
label = "Vitest"
|
|
type = "checkbox"
|
|
default = "false"
|
|
|
|
[[fields]]
|
|
id = "eslint"
|
|
label = "ESLint"
|
|
type = "checkbox"
|
|
default = "false"
|
|
|
|
[[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"
|
|
|
|
# create-vue prompts unless a feature flag is given and the folder is a valid package name.
|
|
[[steps]]
|
|
label = "Running create-vue"
|
|
package = "create-vue@latest"
|
|
cwd = "parent"
|
|
creates = "{{name|kebab}}"
|
|
args = [
|
|
"{{name|kebab}}",
|
|
{ when = { ts = "true" }, args = ["--ts"] },
|
|
{ when = { router = "true" }, args = ["--router"] },
|
|
{ when = { pinia = "true" }, args = ["--pinia"] },
|
|
{ when = { vitest = "true" }, args = ["--vitest"] },
|
|
{ when = { eslint = "true" }, args = ["--eslint"] },
|
|
# No flag means "nothing extra" without prompting; `--default` would add TypeScript.
|
|
{ when = { ts = "false", router = "false", pinia = "false", vitest = "false", eslint = "false" }, args = ["--oxlint"] },
|
|
]
|
|
|
|
[[after]]
|
|
label = "Installing dependencies"
|
|
program = "{{pm}}"
|
|
args = ["install"]
|
|
when = { install = "true" }
|