plopfile.js 566 B

12345678910111213
  1. const viewGenerator = require('vab-templates/view/prompt')
  2. const curdGenerator = require('vab-templates/curd/prompt')
  3. const componentGenerator = require('vab-templates/component/prompt')
  4. const mockGenerator = require('vab-templates/mock/prompt')
  5. const vuexGenerator = require('vab-templates/vuex/prompt')
  6. module.exports = (plop) => {
  7. plop.setGenerator('view', viewGenerator)
  8. plop.setGenerator('curd', curdGenerator)
  9. plop.setGenerator('component', componentGenerator)
  10. plop.setGenerator('mock&api', mockGenerator)
  11. plop.setGenerator('vuex', vuexGenerator)
  12. }