diegohaz / generact

Generate React components by replicating your own
https://git.io/generact
MIT License
1.48k stars 64 forks source link

If original filename is in lowercase, generate new file in lowercase #5

Open diegohaz opened 7 years ago

diegohaz commented 7 years ago

Currently, if we find home.jsx, for example, and replicate it as Foo, the new file will be Foo.jsx, instead of foo.jsx.

Boilerplate that uses that pattern: https://github.com/jedireza/aqua

joao-alberto commented 7 years ago

Hi, your project is awesome, congrats!

Someone is assigned to this issue? I wanna contribute 🤘

diegohaz commented 7 years ago

@psicotropicos Sure, go ahead, please. :)

marlonmleite commented 7 years ago

@diegohaz with this PR the correct is:

before foo-name.jsx = FooName.jsx foo.jsx = Foo.jsx

after foo-name.jsx = foo-name.jsx foo.jsx = foo.jsx

diegohaz commented 7 years ago

@marlonmleite Yeah, but component name (in file contents) should be kept as FooName and Foo.