forked from jfrconley/nornir
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plopfile.cjs
31 lines (29 loc) · 832 Bytes
/
plopfile.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
const path = require('path');
const { readFileSync } = require('fs');
module.exports = function (
i
) {
/** @type {import('plop').NodePlopAPI} */
const plop = i;
plop.setGenerator('utility-lib', {
description: 'Create a new utility library',
prompts: [
{
type: "input",
name: "name",
message: "Enter the name of your utility library",
}
],
actions: () => {
return [
{
type: "addMany",
destination: "packages/{{name}}",
base: "plop_templates/utility-lib",
templateFiles: "plop_templates/utility-lib/**/*",
globOptions: {dot: true}
}
]
}
})
};