plopfile.js 694 B

12345678910111213141516
  1. /**
  2. * @author https://gitee.com/chu1204505056/vue-admin-better (不想保留author可删除)
  3. * @description 代码生成机
  4. */
  5. const viewGenerator = require('zx-templates/view/prompt')
  6. const curdGenerator = require('zx-templates/curd/prompt')
  7. const componentGenerator = require('zx-templates/component/prompt')
  8. const mockGenerator = require('zx-templates/mock/prompt')
  9. const vuexGenerator = require('zx-templates/vuex/prompt')
  10. module.exports = (plop) => {
  11. plop.setGenerator('view', viewGenerator)
  12. plop.setGenerator('curd', curdGenerator)
  13. plop.setGenerator('component', componentGenerator)
  14. plop.setGenerator('mock&api', mockGenerator)
  15. plop.setGenerator('vuex', vuexGenerator)
  16. }