1 Star 0 Fork 9

zhanle1992/elegant-admin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
plopfile.js 446 Bytes
一键复制 编辑 原始数据 按行查看 历史
→奮鬦べ青年 提交于 2024-10-07 21:53 +08:00 . 初始提交代码
import { promises as fs } from 'node:fs'
export default async function (plop) {
plop.setWelcomeMessage('请选择需要创建的模式:')
const items = await fs.readdir('./plop-templates')
for (const item of items) {
const stat = await fs.lstat(`./plop-templates/${item}`)
if (stat.isDirectory()) {
const prompt = await import(`./plop-templates/${item}/prompt.js`)
plop.setGenerator(item, prompt.default)
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
CSS
1
https://gitee.com/zhanle.git.com/elegant-admin.git
git@gitee.com:zhanle.git.com/elegant-admin.git
zhanle.git.com
elegant-admin
elegant-admin
main

搜索帮助