mirror of
https://github.com/portainer/portainer.git
synced 2025-07-18 21:09:40 +02:00
chore(plop): use templates as in style guide (#4916)
* chore(plop): use templates as in style guide fix [CE-483] * chore(plop): export component and add to module
This commit is contained in:
parent
32a9a2e46b
commit
d0d38990c7
3 changed files with 11 additions and 8 deletions
|
@ -25,12 +25,12 @@ module.exports = function (plop) {
|
|||
},
|
||||
{
|
||||
type: 'add',
|
||||
path: `{{cwd}}/{{dashCase name}}/{{camelCase name}}Controller.js`,
|
||||
path: `{{cwd}}/{{dashCase name}}/{{dashCase name}}.controller.js`,
|
||||
templateFile: './plop-templates/component-controller.js.hbs',
|
||||
},
|
||||
{
|
||||
type: 'add',
|
||||
path: `{{cwd}}/{{dashCase name}}/{{camelCase name}}.html`,
|
||||
path: `{{cwd}}/{{dashCase name}}/{{dashCase name}}.html`,
|
||||
templateFile: './plop-templates/component.html.hbs',
|
||||
},
|
||||
], // array of actions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue