// import { blue } from 'chalk'; // import { printMsg } from 'utils/common'; import { createProjectFile, initFeatrue, selectFeature } from '../utils/create'; // import { printMsg } from 'utils/common'; export async function cerateProject (Pname:string) { // 1·创建项目目录 createProjectFile(Pname); // 2·收集用户创建项目的功能 const { featrueList, projectType } = await selectFeature(); // 结果是一个数组 // printMsg(projectType); // console.log(blue(featrueList, projectType)); const { ptype } = projectType; const { featrue } = featrueList; console.log(ptype, featrue); // 3·实现功能 initFeatrue(Pname, ptype, featrue); // 4·收尾 打印一些东西 }