Skip to content

Instantly share code, notes, and snippets.

@amwmedia
Last active November 25, 2019 13:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amwmedia/dc5830cb00e77aa4cf57418136591480 to your computer and use it in GitHub Desktop.
Save amwmedia/dc5830cb00e77aa4cf57418136591480 to your computer and use it in GitHub Desktop.
addMany example
module.exports = function (plop) {
plop.setGenerator("test", {
description: "create a component",
prompts: [
{
type: "input",
name: "name",
message: "name"
}
],
actions: [
{
type: "addMany",
destination: "src/tests/{{name}}-folder",
base: `templates`,
templateFiles: `templates/*.hbs`
}
]
})
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment