CVarisco / create-component-app

Tool to generate different types of React components from the terminal. 💻
MIT License
859 stars 58 forks source link

Add support for flow annotations #21

Closed monsonjeremy closed 7 years ago

monsonjeremy commented 7 years ago

Add a flag to add flow annotations which would enable flow at the top of the file and put in some default flow type annotations like so:

// @flow

type Props = {}

class SomeClass extends PureComponent {
  constructor(props: Props) {
     super(props)
  }
}
CVarisco commented 7 years ago

Hi @monsonjeremy,

thanks a lot for your support 👍🏻 Yeah, this will be a great enhancement in the config file. Now we have a lot of questions on the CLI, so I think it is better to put this option only in the configuration. What do you think about it ?

If you want contribute, for me it's a pleasure 🙂

CVarisco commented 7 years ago

Hi @monsonjeremy, now you can create custom templates with this tool! Here the docs: Link

And also, you can share it with the community!!! Here the docs: Link

Thanks a lot for your support 🏆