react-webpack-generators / generator-react-webpack

Yeoman generator for ReactJS and Webpack
http://newtriks.com/2013/12/31/automating-react-with-yeoman-and-grunt/
MIT License
2.88k stars 355 forks source link

Build component name with _.capitalize #267

Open sthzg opened 8 years ago

sthzg commented 8 years ago

Currently the component name is built with classify (utils/yeoman.js:44), which turns a second consecutive capital letter to lowercase.

QPanelDisplay => QpanelDisplay

With _.capitalize we could keep that control on the user-side:

capitalize(string, [lowercaseRest=false]) => string
weblogixx commented 8 years ago

Seems like a good idea. Will have a look at it and implement it eventually.