项目初始化

This commit is contained in:
chenxiaoxi
2021-04-19 18:00:27 +08:00
commit b2620a08a1
164 changed files with 14408 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
/**
* @description 代码生成机
*/
const viewGenerator = require('zx-templates/view/prompt')
const curdGenerator = require('zx-templates/curd/prompt')
const componentGenerator = require('zx-templates/component/prompt')
const mockGenerator = require('zx-templates/mock/prompt')
const vuexGenerator = require('zx-templates/vuex/prompt')
module.exports = (plop) => {
plop.setGenerator('view', viewGenerator)
plop.setGenerator('curd', curdGenerator)
plop.setGenerator('component', componentGenerator)
plop.setGenerator('mock&api', mockGenerator)
plop.setGenerator('vuex', vuexGenerator)
}