plopfile.js 468 B

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