1 Star 0 Fork 0

奕初 / yunxiu-next

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
plopfile.js 885 Bytes
一键复制 编辑 原始数据 按行查看 历史
奕初 提交于 2021-08-08 11:06 . feat: 🎸 add feature
module.exports = plop => {
plop.setGenerator('component', {
description: 'create a custom component',
prompts: [
{
type: 'input',
name: 'name',
message: 'component name',
default: 'MyComponent',
},
],
actions: [
{
type: 'add',
path: 'src/components/{{name}}/{{name}}.vue',
templateFile: 'plop-template/component/component.hbs',
},
{
type: 'add',
path: 'src/components/{{name}}/index.js',
templateFile: 'plop-template/component/index.hbs',
},
{
type: 'add',
path: 'src/styles/components/{{name}}/index.scss',
templateFile: 'plop-template/component/style.hbs',
},
{
type: 'add',
path: 'examples/docs/{{name}}.md',
templateFile: 'plop-template/component/docs.hbs',
},
],
})
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/yichu-gitee/yunxiu-next.git
git@gitee.com:yichu-gitee/yunxiu-next.git
yichu-gitee
yunxiu-next
yunxiu-next
main

搜索帮助

344bd9b3 5694891 D2dac590 5694891