arminbro / generate-react-cli

A simple React CLI to generate components instantly and more.

Home Page:https://www.npmjs.com/package/generate-react-cli

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Define extension into customTemplates

HenriqueOmena opened this issue · comments

Hello i loved this project!!!

Describe the solution you'd like
i think some ppl use diferente kind of structure name into files, why not in customTemplate we can define the extension of the files ?

Describe alternatives you've considered
My suggestion are, we build more details then
instead

"customTemplates": {
  "style": "templates/component/style.styles.tsx"
},

we put someting liked that

"customTemplates": {
  "style": {
    "path": "templates/component/style.styles.tsx",
    "extension": "TemplateName.styles.tsx"
  }
},

then into contruction of component we gonna got
TemplanteName.styles.tsx instead TemplanteName.module.scss for styles