1
0
Fork 0
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:
Chaim Lev-Ari 2021-03-18 22:03:26 +02:00 committed by GitHub
parent 32a9a2e46b
commit d0d38990c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 8 deletions

View file

@ -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