дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-05 17:47:08 +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]>
54 рядки
1.1 KiB
TOML
54 рядки
1.1 KiB
TOML
id = "expo"
|
|
name = "Expo (React Native)"
|
|
group = "JavaScript"
|
|
icon = "project-expo"
|
|
order = 10
|
|
description = "A React Native app on Expo from create-expo-app."
|
|
|
|
[[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 = "blank-typescript", label = "Blank (TypeScript)" },
|
|
{ value = "blank", label = "Blank" },
|
|
{ value = "tabs", label = "Tabs (Expo Router)" },
|
|
]
|
|
default = "blank-typescript"
|
|
|
|
[[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-expo-app"
|
|
package = "create-expo-app@latest"
|
|
cwd = "parent"
|
|
args = ["{{name}}", "--template", "{{template}}", "--no-install", "--yes"]
|
|
|
|
[[after]]
|
|
label = "Installing dependencies"
|
|
program = "{{pm}}"
|
|
args = ["install"]
|
|
when = { install = "true" }
|