plopfile.js 572 B

12345678910111213
  1. const viewGenerator = require("zx-templates/view/prompt");
  2. const curdGenerator = require("zx-templates/curd/prompt");
  3. const componentGenerator = require("zx-templates/component/prompt");
  4. const mockGenerator = require("zx-templates/mock/prompt");
  5. const vuexGenerator = require("zx-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. };