-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplopfile.js
More file actions
27 lines (27 loc) · 747 Bytes
/
plopfile.js
File metadata and controls
27 lines (27 loc) · 747 Bytes
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
module.exports = function (plop) {
plop.setGenerator("jour", {
description: "Génère un dossier pour un jour de l'AoC",
prompts: [
{
type: "number",
name: "day",
message: "Pour quel jour?",
},
],
actions: [
{
type: "add",
path: "jour{{day}}/part1/index.js",
templateFile: "plop/index.js.hbs",
},
{
type: "add",
path: "jour{{day}}/part1/input.txt",
},
{
type: "add",
path: "jour{{day}}/part1/test.txt",
},
],
});
};