-
Notifications
You must be signed in to change notification settings - Fork 0
/
plopfile.cjs
17 lines (16 loc) · 907 Bytes
/
plopfile.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const addComponentGenerator = require("./tools/plop-templates/components/generator.cjs");
const addCoreGenerator = require("./tools/plop-templates/core/generator.cjs");
const addInfrastructureGenerator = require("./tools/plop-templates/infrastructure/generator.cjs");
const addServiceGenerator = require("./tools/plop-templates/services/generator.cjs");
const addWorkerGenerator = require("./tools/plop-templates/workers/generator.cjs");
/**
* Main configuration for Plop, which allows us to create generators for
* common repeating boilerplate, like adding new components or workflows.
*/
module.exports = function (plop) {
plop.setGenerator("component", addComponentGenerator);
plop.setGenerator("core", addCoreGenerator);
plop.setGenerator("infrastructure", addInfrastructureGenerator);
plop.setGenerator("service", addServiceGenerator);
plop.setGenerator("worker", addWorkerGenerator);
};