- 添加基于 VbenAdmin + Vue3 + Element Plus 的前端管理系统 - 包含完整的 UI 组件库和工具链 - 支持多应用架构 (web-ele, backend-mock, playground) - 包含完整的开发规范和配置 - 修复 admin 目录的子模块问题,确保正确提交
30 lines
572 B
TypeScript
30 lines
572 B
TypeScript
import { colors, consola } from '@vben/node-utils';
|
|
|
|
import { cac } from 'cac';
|
|
|
|
import { run } from './run';
|
|
|
|
try {
|
|
const turboRun = cac('turbo-run');
|
|
|
|
turboRun
|
|
.command('[script]')
|
|
.usage(`Run turbo interactively.`)
|
|
.action(async (command: string) => {
|
|
run({ command });
|
|
});
|
|
|
|
// Invalid command
|
|
turboRun.on('command:*', () => {
|
|
consola.error(colors.red('Invalid command!'));
|
|
process.exit(1);
|
|
});
|
|
|
|
turboRun.usage('turbo-run');
|
|
turboRun.help();
|
|
turboRun.parse();
|
|
} catch (error) {
|
|
consola.error(error);
|
|
process.exit(1);
|
|
}
|