@qmuse/qmuse-cli 1.0.2-dev.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/cli.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -42,6 +42,8 @@ qmuse import /path/to/react-project --space-id <spaceId>
|
|
|
42
42
|
|
|
43
43
|
已选择空间时,可省略 `--space-id`。不希望自动打开浏览器时,添加 `--no-open`。
|
|
44
44
|
|
|
45
|
+
首次导入时,可通过 `--title "应用名称"` 指定标题;不指定时,QMuse 会根据代码生成标题。应用描述由 QMuse 根据代码生成。
|
|
46
|
+
|
|
45
47
|
导入遵循项目根目录的 `.gitignore`,自动排除依赖目录、构建产物和 `.env*` 等文件。检测到私钥或凭证时会停止导入,请按提示处理后重试。
|
|
46
48
|
|
|
47
49
|
导入失败时,按终端提示处理;如果生成了 `.qmuse/last-import-error.json`,可查看该文件定位问题。修复后重新执行导入命令。
|
package/dist/cli.js
CHANGED
|
@@ -447,7 +447,7 @@ async function cmdImport(command, flags) {
|
|
|
447
447
|
const started = await startAppImport({
|
|
448
448
|
sourceToken,
|
|
449
449
|
spaceId,
|
|
450
|
-
title: str(flags, '--title') ||
|
|
450
|
+
title: str(flags, '--title')?.trim() || undefined,
|
|
451
451
|
sourceHash: preflight.sourceHash,
|
|
452
452
|
sourceType: 'REACT_VITE',
|
|
453
453
|
cloudMode,
|