feat: coming soon

This commit is contained in:
Divlo
2021-10-24 05:48:06 +02:00
parent 21123c4477
commit 33bd2bb6bf
176 changed files with 36858 additions and 22133 deletions

View File

@ -0,0 +1,43 @@
/**
* @param {import('plop').NodePlopAPI} plop
* @returns {import('node-plop').PlopGeneratorConfig}
*/
exports.componentGenerator = () => {
return {
description: 'Component Generator',
prompts: [
{
type: 'input',
name: 'name',
message: 'component name'
},
{
type: 'input',
name: 'folder',
message: 'folder in components'
}
],
actions: [
{
type: 'add',
path: 'components/{{folder}}/{{properCase name}}/{{properCase name}}.stories.tsx',
templateFile: 'generators/component/Component.stories.tsx.hbs'
},
{
type: 'add',
path: 'components/{{folder}}/{{properCase name}}/{{properCase name}}.test.tsx',
templateFile: 'generators/component/Component.test.tsx.hbs'
},
{
type: 'add',
path: 'components/{{folder}}/{{properCase name}}/{{properCase name}}.tsx',
templateFile: 'generators/component/Component.tsx.hbs'
},
{
type: 'add',
path: 'components/{{folder}}/{{properCase name}}/index.ts',
templateFile: 'generators/component/index.ts.hbs'
}
]
}
}