mirror of
https://github.com/142vip/408CSFamily.git
synced 2026-04-24 02:30:36 +08:00
feat: 优化lint校验、markdown文档更新、脚本修改等
This commit is contained in:
@@ -36,7 +36,7 @@ exports.execShell = async commands => {
|
||||
// await syncExec(command)
|
||||
const execResult = await exec(command)
|
||||
// 打印输出结果
|
||||
// console.log(execResult.stdout);
|
||||
console.log(execResult.stdout);
|
||||
console.log(`step${count}(ending): === \n`)
|
||||
// 指令异常,不执行后续指令,非0退出
|
||||
if (execResult.code !== 0) {
|
||||
@@ -44,16 +44,4 @@ exports.execShell = async commands => {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 脚本基础设置
|
||||
*/
|
||||
exports.BaseSetting = {
|
||||
successLogger: "\033[36m",
|
||||
errorLogger: "\033[1;31m",
|
||||
warnLogger: "\033[1;33m",
|
||||
// 定义时间
|
||||
currentTime: '$(date "+%Y-%m-%d %H:%M:%S")'
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user