@ysjdemo/umi-create-cli 0.0.5 → 0.0.6

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/lib/create.js CHANGED
@@ -90,18 +90,26 @@ async function createProject(projectName, options) {
90
90
  },
91
91
  ]);
92
92
 
93
+ console.log(""); // 换行
94
+ console.log(chalk.gray("==================================================================="));
93
95
  const spinner = ora("正在创建项目...").start();
96
+ console.log(""); // 换行
94
97
 
95
98
  try {
96
99
  // 生成项目文件
97
- await generateTemplate(projectName, selectedTemplate, targetDir, useLatestVersions);
100
+ await generateTemplate({
101
+ projectName,
102
+ templateType: selectedTemplate,
103
+ targetDir,
104
+ useLatestVersions,
105
+ qiankunSubAppName,
106
+ });
107
+ spinner.succeed(chalk.green("项目创建成功!"));
108
+ console.log(chalk.gray("==================================================================="));
109
+ console.log(""); // 换行
98
110
 
99
- spinner.succeed("项目文件生成完成");
100
-
101
- console.log(chalk.green("✅ 项目创建成功!"));
102
- console.log("");
103
111
  console.log(chalk.cyan(`📁 进入项目目录: cd ${projectName}`));
104
- console.log(chalk.cyan("📦 安装依赖: npm install 或 yarn"));
112
+ console.log(chalk.cyan("📦 安装依赖: npm install 或 yarn install"));
105
113
  console.log(chalk.cyan("🚀 启动项目: npm start 或 yarn start"));
106
114
  } catch (error) {
107
115
  spinner.fail("项目创建失败");
@@ -1,4 +1,3 @@
1
- const https = require('https');
2
1
  const { execSync } = require('child_process');
3
2
 
4
3
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ysjdemo/umi-create-cli",
3
3
  "author": "ysj <411367308@qq.com>",
4
- "version": "0.0.5",
4
+ "version": "0.0.6",
5
5
  "description": "一个用于创建Umi4项目的脚手架工具",
6
6
  "main": "index.js",
7
7
  "bin": {