Closed Redish101 closed 2 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
umi | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jul 7, 2024 1:07am |
[!IMPORTANT]
Review skipped
Auto reviews are disabled on this repository.
Please check the settings in the CodeRabbit UI or the
.coderabbit.yaml
file in this repository. To trigger a single review, invoke the@coderabbitai review
command.You can disable this status message by setting the
reviews.review_status
tofalse
in the CodeRabbit configuration file.
本次更改在 create-umi
工具中引入了一个新的 setName
函数,该函数用于提示用户输入项目名称,对其进行验证,并根据输入内容更新目标路径。这一新功能增强了用户在创建项目时的互动体验。
文件路径 | 更改摘要 |
---|---|
packages/.../src/index.ts | 引入新的 setName 函数,提示用户输入项目名称,验证并更新 target 路径。 |
sequenceDiagram
participant User
participant setNameFunction as setName Function
participant System
User ->> setNameFunction: Prompt for project name
setNameFunction -->> User: Validate project name
setNameFunction ->> System: Update target based on input
System -->> User: Confirmation of new target
代码如诗墨笔挥,
更新功能添光辉。
项目名称随心定,
验证更新皆智能。
兔子为君送祝福,
编程路上快乐随。
🌟🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
代码看起来没问题。
改下文档吧,如果不改文档,下一次看文档的人创建就变成 mkdir my-app && cd ./my-app
然后变成 my-app/my-app
了。
10011
为
create-umi
新增了设置项目名称的步骤,默认值为cli传入的第一个参数。Summary by CodeRabbit
setName
功能,提示用户输入项目名称,进行验证,并根据输入更新目标路径。这增强了用户在使用create-umi
工具时的交互体验。