Skip to content

Commit 37c875b

Browse files
committed
updated dynamic template file tests to include append action
1 parent ae298cf commit 37c875b

File tree

1 file changed

+6
-0
lines changed
  • packages/node-plop/tests/dynamic-template-file

1 file changed

+6
-0
lines changed

packages/node-plop/tests/dynamic-template-file/plopfile.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ export default function (plop) {
3232
path: "src/change-me.txt",
3333
templateFile: "plop-templates/change-me.txt",
3434
},
35+
{
36+
type: "append",
37+
path: "src/change-me.txt",
38+
pattern: /(-- APPEND ITEMS HERE --)/gi,
39+
templateFile: "plop-templates/{{dashCase kind}}.txt",
40+
},
3541
{
3642
type: "modify",
3743
path: "src/change-me.txt",

0 commit comments

Comments
 (0)