UNPKG

@jzinfo/create-project

Version:

前端项目脚手架工具

22 lines (17 loc) 443 B
const Creator = require("../lib/Creator"); async function initCommand() { const creator = new Creator(); try { await creator.prompt() // console.log(creator.answers) } catch (e) { console.error(e.message) return } const files = creator.clone().filter().files console.log(`需要处理${files.length}个文件`) creator.replace().cleanup() } module.exports = { initCommand, }