Skip to content

Commit

Permalink
🎈 perf(vercel-deploy-tool): 优化了控制台输出的结果,移除掉了许多冗长的内容。
Browse files Browse the repository at this point in the history
  • Loading branch information
ruan-cat committed Oct 15, 2024
1 parent cb0fcd0 commit e6be386
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions demos/vercel-deploy-tool/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ function generateCopyDistTasks(deployTarget: WithUserCommands) {
parameters: [],
});
const { code, stdout } = await commandFunction();
consola.info(` 执行了命令: `, command);
consola.box(stdout);
consola.info(` 执行了命令 🐓: `, command);
// consola.box(stdout);
});
});

Expand Down Expand Up @@ -311,7 +311,7 @@ function generateAfterBuildTasksConfig(config: Config): Task {
consola.start(` 开始用户 afterBuildTasks 命令任务 `);
const { code, stdout } = await userCommand();
consola.success(` 完成用户 afterBuildTasks 命令任务 ${code} `);
consola.box(stdout);
// consola.box(stdout);
});
}),
};
Expand Down Expand Up @@ -355,7 +355,7 @@ async function main() {
const { code, stdout } = await build();
consola.success(` 完成build任务 `);
consola.info(` 完成命令 ${code} `);
consola.box(stdout);
// consola.box(stdout);
});
}),
},
Expand Down Expand Up @@ -388,7 +388,7 @@ async function main() {
consola.start(` 开始用户命令任务 `);
const { code, stdout } = await userCommand();
consola.success(` 完成用户命令任务 ${code} `);
consola.box(stdout);
// consola.box(stdout);
});
}),
},
Expand Down
4 changes: 2 additions & 2 deletions demos/vercel-deploy-tool/src/utils/define-promise-tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,11 @@ export async function executePromiseTasks(

res = await task(lastParams);
lastParams = res;
console.log(` 串行任务 单独 res `, res);
// console.log(` 串行任务 单独 res `, res);
} else {
res = await executePromiseTasks(task, lastParams);
lastParams = res;
console.log(` 串行任务 配置 res `, res);
// console.log(` 串行任务 配置 res `, res);
}
}

Expand Down

0 comments on commit e6be386

Please sign in to comment.