99x / react-scaffolder

:zap: Scaffolding tool for React
MIT License
44 stars 14 forks source link

Define propTypes without asking (name:type) #60

Closed shapkarin closed 5 years ago

shapkarin commented 5 years ago

Define propTypes with type in propNames input (name:type)

shapkarin commented 5 years ago

Done, just need to refactor 😄 and probably I can't use spread. (work after v8.3) Also propTypes works fine with asterisk at the end title:string* https://github.com/shapkarin/react-scaffolder/commit/8de0d44523261609ee8c5ad0c8fbf78b81182dee https://github.com/shapkarin/react-scaffolder/commit/5eab2033b7435cf039fd9457014e24ffb4adf13c And sure, if you write some props without type, then cli will ask you to choose

shapkarin commented 5 years ago

Soon I'll refact that and make PR

shapkarin commented 5 years ago

I made PR