|
|
@@ -1,4 +1,3 @@ |
|
|
|
const testName = require('./plop/helpers/testName.js') |
|
|
|
module.exports = plop => { |
|
|
|
plop.setGenerator('component', { |
|
|
|
description: 'Creates a component.', |
|
|
@@ -21,9 +20,15 @@ module.exports = plop => { |
|
|
|
actions: [ |
|
|
|
{ |
|
|
|
type: 'addMany', |
|
|
|
templateFiles: 'plop/templates/component/*', |
|
|
|
base: 'plop/templates/component', |
|
|
|
destination: 'packages/react-common/components/{{pascalCase name}}', |
|
|
|
templateFiles: 'plop/templates/react-common/component/*', |
|
|
|
base: 'plop/templates/react-common/component', |
|
|
|
destination: 'packages/react-common/src/components/{{pascalCase name}}', |
|
|
|
}, |
|
|
|
{ |
|
|
|
type: 'addMany', |
|
|
|
templateFiles: 'plop/templates/react-common-docs/component/*', |
|
|
|
base: 'plop/templates/react-common-docs/component', |
|
|
|
destination: 'packages/react-common-docs/src/pages/components', |
|
|
|
}, |
|
|
|
], |
|
|
|
}) |
|
|
|