摘要: 1.初始化 yarn init 2.在package.json 添加入口 "bin": "cli.js" { "name": "sample-scaffolding", "version": "1.0.0", "main": "index.js", "bin": "cli.js", "license 阅读全文
posted @ 2021-05-06 17:37 faint33 阅读(100) 评论(0) 推荐(0) 编辑
摘要: Plop 根据模板自动化创建文件的前端自动化架构解决方案 使用方式 1. yarn add plop --dev 安装在开发依赖当中 2. 根目录创建 plopfile.js 文件 这个文件是plop入口文件, 需要导出一个函数,这个函数接受一个plop对象,用于创建生成器任务 module.exp 阅读全文
posted @ 2021-05-06 13:41 faint33 阅读(252) 评论(0) 推荐(0) 编辑